Exemplo n.º 1
0
 private async void Page_PreviewKeyUp(object sender, KeyRoutedEventArgs e)
 {
     try
     {
         System.Diagnostics.Debug.WriteLine("Released key: " + e.Key);
         if (e.Key == VirtualKey.F2)
         {
             try
             {
                 PersonalizePopup personalizePopup = new PersonalizePopup();
                 await personalizePopup.Popup();
             }
             catch { }
         }
         else if (e.Key == VirtualKey.F5)
         {
             if (AppVariables.BusyApplication)
             {
                 System.Diagnostics.Debug.WriteLine("Application is too busy to handle key shortcut."); return;
             }
             try { await LoadFullItem(); } catch { }
         }
         else if (e.Key == VirtualKey.Escape)
         {
             if (AppVariables.BusyApplication)
             {
                 System.Diagnostics.Debug.WriteLine("Application is too busy to handle key shortcut."); return;
             }
             try { ClosePopup(); } catch { }
         }
     }
     catch { }
 }
Exemplo n.º 2
0
 private void iconPersonalize_Tap(object sender, EventArgs e)
 {
     try
     {
         HideShowMenu(true);
         PersonalizePopup.Popup();
     }
     catch { }
 }
Exemplo n.º 3
0
        private async void iconPersonalize_Tap(object sender, RoutedEventArgs e)
        {
            try
            {
                await HideShowMenu(true);

                PersonalizePopup personalizePopup = new PersonalizePopup();
                await personalizePopup.Popup();
            }
            catch { }
        }
Exemplo n.º 4
0
 private async void Page_PreviewKeyUp(object sender, KeyRoutedEventArgs e)
 {
     try
     {
         System.Diagnostics.Debug.WriteLine("Released key: " + e.Key);
         if (e.Key == VirtualKey.F2)
         {
             try
             {
                 PersonalizePopup personalizePopup = new PersonalizePopup();
                 await personalizePopup.Popup();
             }
             catch { }
         }
         else if (e.Key == VirtualKey.Escape)
         {
             try { await HideShowHeader(false); } catch { }
         }
     }
     catch { }
 }