private void AddGameButton_Click(object sender, RoutedEventArgs e) { GameCommandWindow window = new GameCommandWindow(); window.Closed += Window_Closed; window.Show(); }
public async Task Initialize(GameCommandWindow window) { this.gameWindow = window; await base.Initialize(window); this.RefreshControl(); }
public async Task Initialize(GameCommandWindow window, CustomCommand command) { this.window = window; this.command = command; await base.Initialize(window); this.RefreshControl(); }
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(); } }