/// <summary> /// Invoked when the "New timer" <see cref="MenuItem"/> is clicked. /// </summary> /// <param name="sender">The <see cref="MenuItem"/> where the event handler is attached.</param> /// <param name="e">The event data.</param> private void NewTimerMenuItemClick(object sender, EventArgs e) { TimerWindow window = new TimerWindow(); window.RestoreFromSibling(); window.Show(); }
/// <summary> /// Invoked when the "New timer" <see cref="MenuItem"/> is clicked. /// </summary> /// <param name="sender">The <see cref="MenuItem"/> where the event handler is attached.</param> /// <param name="e">The event data.</param> private void NewTimerMenuItemClick(object sender, RoutedEventArgs e) { TimerWindow window = new TimerWindow(); window.RestoreFromWindow(this.timerWindow); window.Show(); }