コード例 #1
0
        private void btn_AddEvent_Click(object sender, RoutedEventArgs e)
        {
            EventModificationWindow win = new EventModificationWindow();

            win.Show();
            this.Close();
        }
コード例 #2
0
 private void btn_EditEvent_Click(object sender, RoutedEventArgs e)
 {
     if (cmd_EventIDCombo.SelectedIndex != -1)
     {
         EventModificationWindow win = new EventModificationWindow(((ComboBoxItem)cmd_EventIDCombo.SelectedItem).Content.ToString());
         win.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("You must select an event ID from the drop down box.");
     }
 }