예제 #1
0
        private void AddGameButton_Click(object sender, RoutedEventArgs e)
        {
            GameCommandWindow window = new GameCommandWindow();

            window.Closed += Window_Closed;
            window.Show();
        }
예제 #2
0
        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();
            }
        }