private void insertBtn_Click(object sender, RoutedEventArgs e) { CustomPolitcian politcian = parliamentGrid.SelectedItem as CustomPolitcian; InsertWindow insertWindow = new InsertWindow(); insertWindow.Show(); }
// 작성 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; } }
public void SecondWindowClosed(object sender, System.EventArgs e) { SubWindow = null; }
private static void insertFunctionality() { InsertWindow insertWindow = new InsertWindow(); insertWindow.MainWindow(); }