Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Xamarin.Forms;
- namespace App3
- {
- // Learn more about making custom code visible in the Xamarin.Forms previewer
- // by visiting https://aka.ms/xamarinforms-previewer
- [DesignTimeVisible(false)]
- public partial class MainPage : ContentPage
- {
- public MainPage()
- {
- InitializeComponent();
- }
- private void oblicz(object sender, EventArgs e)
- {
- try
- {
- wyniknapis.Text = String.Format("{0:F2}", double.Parse(Mocbox.Text) / double.Parse(Napieciebox.Text));
- }
- catch { wyniknapis.Text = "Bledne dane"; }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement