Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using Xamarin.Forms;
  8.  
  9. namespace App3
  10. {
  11. // Learn more about making custom code visible in the Xamarin.Forms previewer
  12. // by visiting https://aka.ms/xamarinforms-previewer
  13. [DesignTimeVisible(false)]
  14. public partial class MainPage : ContentPage
  15. {
  16. public MainPage()
  17. {
  18. InitializeComponent();
  19. }
  20. private void oblicz(object sender, EventArgs e)
  21. {
  22. try
  23. {
  24. wyniknapis.Text = String.Format("{0:F2}", double.Parse(Mocbox.Text) / double.Parse(Napieciebox.Text));
  25. }
  26. catch { wyniknapis.Text = "Bledne dane"; }
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement