| 123456789101112131415161718192021222324252627282930313233343536 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.Linq;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- using Xamarin.Forms;
 
- using Xamarin.Forms.Xaml;
 
- namespace comal.timesheets
 
- {
 
- 	public delegate void PopupEditorSaved(string text);
 
- 	[XamlCompilation(XamlCompilationOptions.Compile)]
 
- 	public partial class PopupEditor : ContentPage
 
- 	{
 
- 		public event PopupEditorSaved OnPopupEdtSaved;
 
- 		public PopupEditor(string text = "")
 
- 		{
 
- 			InitializeComponent();
 
- 			NavigationPage.SetHasBackButton(this, false);
 
- 			textEdt.Text = text;
 
- 		}
 
- 		private void CancelBtn_Clicked(object sender, EventArgs e)
 
- 		{
 
- 			Navigation.PopAsync();
 
- 		}
 
- 		private void SaveBtn_Clicked(object sender, EventArgs e)
 
- 		{
 
- 			OnPopupEdtSaved(textEdt.Text);
 
-             Navigation.PopAsync();
 
-         }
 
-     }
 
- }
 
 
  |