Exemple #1
0
        private void btnNewFaction_Click(object sender, RoutedEventArgs e)
        {
            NewFactionWindow newFactionWindow = new NewFactionWindow(scen);

            newFactionWindow.Show();
            newFactionWindow.Closed += NewFactionWindow_Closed;
        }
Exemple #2
0
        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();
            }
        }