Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. using System.Threading.Tasks;
  2. using Xamarin.Forms;
  3.  
  4. namespace Exercise2
  5. {
  6. // Learn more about making custom code visible in the Xamarin.Forms previewer
  7. // by visiting https://aka.ms/xamarinforms-previewer
  8. [DesignTimeVisible(false)]
  9. public partial class MainPage : ContentPage
  10. {
  11. public MainPage()
  12. {
  13. InitializeComponent();
  14.  
  15. }
  16.  
  17. public static class myVariables
  18. {
  19. public static string myNewText = "";
  20. public static int myX;
  21. }
  22.  
  23. private object txtChar;
  24. private object txtNum;
  25.  
  26. private void submit_clicked(object sender, EventArgs e)
  27. {
  28. var myValue = txtChar.Text;
  29. var myValue2 = txtChar2.Text;
  30. //var myNumber = txtNum.Text;
  31.  
  32. //for (int i = 0; i <= Convert.ToInt32(myNumber); i++)
  33. for (int i=0; i <= myValue.Length - 1; i++)
  34. { }
  35. {
  36. myVariables.myNewText = myVariables.myNewText + myValue[i] + "\n";
  37. }
  38.  
  39. DisplayAlert("Result", myVariables.myNewText, "OK");
  40.  
  41. }
  42.  
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement