Пример #1
0
        private void AddGameButton_Click(object sender, RoutedEventArgs e)
        {
            GameCommandWindow window = new GameCommandWindow();

            window.Closed += Window_Closed;
            window.Show();
        }
Пример #2
0
        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();
        }
Пример #4
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();
            }
        }