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> /// 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> /// 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> /// 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); }