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 { } }
private async void Page_PreviewKeyUp(object sender, KeyRoutedEventArgs e) { try { Debug.WriteLine("Released key: " + e.Key); if (e.Key == VirtualKey.F2) { try { PersonalizePopup personalizePopup = new PersonalizePopup(); await personalizePopup.OpenPopup(); } catch { } } else if (e.Key == VirtualKey.F5) { if (AppVariables.BusyApplication) { Debug.WriteLine("Application is too busy to handle key shortcut."); return; } try { await RefreshItems(); } catch { } } else if (e.Key == VirtualKey.Escape) { try { await HideShowHeader(false); } catch { } } } catch { } }
private void iconPersonalize_Tap(object sender, EventArgs e) { try { HideShowMenu(true); PersonalizePopup.Popup(); } catch { } }
private async void iconPersonalize_Tap(object sender, RoutedEventArgs e) { try { await HideShowMenu(true); PersonalizePopup personalizePopup = new PersonalizePopup(); await personalizePopup.Popup(); } catch { } }
//Show the popup public static void Popup() { try { Device.BeginInvokeOnMainThread(() => { PersonalizePopup newPopup = new PersonalizePopup(); App.NavigateToPage(newPopup, true, true); }); } catch (Exception ex) { Debug.WriteLine("Failed to create personalize popup: " + ex.Message); } }
private async void Page_PreviewKeyUp(object sender, KeyRoutedEventArgs e) { try { Debug.WriteLine("Released key: " + e.Key); if (e.Key == VirtualKey.F2) { try { PersonalizePopup personalizePopup = new PersonalizePopup(); await personalizePopup.OpenPopup(); } catch { } } else if (e.Key == VirtualKey.Escape) { try { await HideShowHeader(false); } catch { } } } catch { } }