private void btnNewFaction_Click(object sender, RoutedEventArgs e) { NewFactionWindow newFactionWindow = new NewFactionWindow(scen); newFactionWindow.Show(); newFactionWindow.Closed += NewFactionWindow_Closed; }
public override void createWindow(bool edit, DataGrid dataGrid, MainWindow mainWindow) { if (!settingUp) { this.mainWindow = mainWindow; NewFactionWindow newWindow = new NewFactionWindow(edit, dataGrid, getScen()); datagridname = dataGrid.Name; newWindow.Closed += NewWindow_Closed; newWindow.ShowDialog(); } }