private void Dialog_Canceled(object sender, EventArgs e) { // Make MoreMenuDialog hidden ((MoreMenuDialog)sender).Hide(); // Restart listening HW Menu key and subscribing from messages about pressing HW meny key MenuKeyListener.Start(this, MenuKeyPressed); }
/// <summary> /// Each time this page is disappearing, a floating button should be hidden. /// </summary> protected override void OnDisappearing() { // Stop listening for key events MenuKeyListener.Stop(this); // Make a floating button hidden ((App)Application.Current).HideFloatingButton(Title); }
/// <summary> /// Each time this page is appearing, alarm count should be checked and if no alarm, /// then use the blank page instead of alarm list view. /// In other case, just show alarm list UI. /// </summary> protected override void OnAppearing() { // When this page is shown, a floating button should be visible for an app user to add a new alarm ((App)Application.Current).ShowFloatingButton(Title); // Start listening for key events MenuKeyListener.Start(this, MenuKeyPressed); }
/// <summary> /// Shows a floating button when the worldclock page is appearing /// </summary> protected override void OnAppearing() { // Make a floating button shown ((App)Application.Current).ShowFloatingButton(Title); // Start listening for key events MenuKeyListener.Start(this, MenuKeyPressed); }
/// <summary> /// Invoked when "Reorder" more menu is choosed /// </summary> /// <param name="menu">string</param> private void ShowReorderPage(string menu) { // Make MoreMenuDialog invisible dialog.Hide(); Toast.DisplayText("[TODO] need to make WorldclockReorderPage visible."); // Temporarily added. Need to be delete when WorldclockReorderPage is created and shown. MenuKeyListener.Start(this, MenuKeyPressed); }
/// <summary> /// Adds a <code>MenuKeyListener</code> to the menu item. /// </summary> public void addMenuKeyListener(MenuKeyListener @l) { }
/// <summary> /// Removes a <code>MenuKeyListener</code> from the menu item. /// </summary> public void removeMenuKeyListener(MenuKeyListener @l) { }
/// <summary> /// Adds a <code>MenuKeyListener</code> to the menu item. /// </summary> public void addMenuKeyListener(MenuKeyListener @l) { }
/// <summary> /// Removes a <code>MenuKeyListener</code> from the menu item. /// </summary> public void removeMenuKeyListener(MenuKeyListener @l) { }
private void Dialog_Shown(object sender, EventArgs e) { // Disable handling HW menu key while MoreMenuDialog is shown MenuKeyListener.Stop(this); }