private void AddGameButton_Click(object sender, RoutedEventArgs e) { GameCommandWindow window = new GameCommandWindow(); window.Closed += Window_Closed; window.Show(); }
private void CommandButtons_EditClicked(object sender, RoutedEventArgs e) { CommandButtonsControl commandButtonControl = (CommandButtonsControl)sender; GameCommandBase command = commandButtonControl.GetCommandFromCommandButtons <GameCommandBase>(sender); if (command != null) { GameCommandWindow window = new GameCommandWindow(command); window.Closed += Window_Closed; window.Show(); } }