Exemple #1
0
 public override void OnBackKeyPress(CancellationEventArgs e)
 {
     e.CancelEvent = true;
     if (firstBackKeyPress.AddSeconds(2) > DateTime.Now)
     {
         Application.Quit();
     }
     else
     {
         firstBackKeyPress = DateTime.Now;
         PagesManager.DisplayToast("Press Back again to exit");
     }
 }
 public void CaptureScreenShot()
 {
     Application.CaptureScreenshot(FileManager.GetScreenShotFileName());
     PagesManager.DisplayToast("Screenshot captured");
 }