NotesPage.xaml.cs 729 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using InABox.Mobile;
  4. using Xamarin.Forms;
  5. namespace PRS.Mobile
  6. {
  7. public delegate void TextChangedEvent(object sender, String text);
  8. public partial class NotesPage
  9. {
  10. public TextChangedEvent TextChanged;
  11. public NotesPage(String title, String text)
  12. {
  13. InitializeComponent();
  14. Title = title;
  15. Notes.Text = text;
  16. }
  17. private void UpdateText()
  18. {
  19. }
  20. private void MobileMenuButton_OnClicked(object sender, MobileMenuButtonClickedEventArgs args)
  21. {
  22. TextChanged?.Invoke(this, Notes.Text);
  23. Navigation.PopAsync();
  24. }
  25. }
  26. }