Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 /// <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);
 }
Exemplo n.º 4
0
 /// <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);
 }
Exemplo n.º 5
0
 /// <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);
 }
Exemplo n.º 6
0
		/// <summary>
		/// Adds a <code>MenuKeyListener</code> to the menu item.
		/// </summary>
		public void addMenuKeyListener(MenuKeyListener @l)
		{
		}
Exemplo n.º 7
0
		/// <summary>
		/// Removes a <code>MenuKeyListener</code> from the menu item.
		/// </summary>
		public void removeMenuKeyListener(MenuKeyListener @l)
		{
		}
Exemplo n.º 8
0
 /// <summary>
 /// Adds a <code>MenuKeyListener</code> to the menu item.
 /// </summary>
 public void addMenuKeyListener(MenuKeyListener @l)
 {
 }
Exemplo n.º 9
0
 /// <summary>
 /// Removes a <code>MenuKeyListener</code> from the menu item.
 /// </summary>
 public void removeMenuKeyListener(MenuKeyListener @l)
 {
 }
Exemplo n.º 10
0
 private void Dialog_Shown(object sender, EventArgs e)
 {
     // Disable handling HW menu key while MoreMenuDialog is shown
     MenuKeyListener.Stop(this);
 }