예제 #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");
     }
 }
예제 #2
0
 public void CaptureScreenShot()
 {
     Application.CaptureScreenshot(FileManager.GetScreenShotFileName());
     PagesManager.DisplayToast("Screenshot captured");
 }