private void Window_Loaded(object sender, RoutedEventArgs e) { snoozeWindow = new SnoozeWindow(); snoozeWindow.Owner = this; snoozeWindow.Show(); snoozeWindow.CommitButton.Click += CommitButton_Click; SetSnoozeWindowLocation(); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (snoozeWindow != null) { snoozeWindow.Close(); snoozeWindow = null; } }