Пример #1
0
        private void insertBtn_Click(object sender, RoutedEventArgs e)
        {
            CustomPolitcian politcian    = parliamentGrid.SelectedItem as CustomPolitcian;
            InsertWindow    insertWindow = new InsertWindow();

            insertWindow.Show();
        }
Пример #2
0
 // 작성
 public void Button_Click_1(object sender, RoutedEventArgs e)
 {
     if (SubWindow == null)
     {
         SubWindow         = new InsertWindow(this);
         SubWindow.Closed += SecondWindowClosed;
         SubWindow.Show();
     }
     else
     {
         SubWindow.Focus();
         SubWindow.BtnSave.Visibility   = Visibility.Visible;
         SubWindow.BtnModify.Visibility = Visibility.Collapsed;
     }
 }
Пример #3
0
 public void SecondWindowClosed(object sender, System.EventArgs e)
 {
     SubWindow = null;
 }
Пример #4
0
        private static void insertFunctionality()
        {
            InsertWindow insertWindow = new InsertWindow();

            insertWindow.MainWindow();
        }