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