Exemplo n.º 1
0
        private async void tbH1SendCommand_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Return)
            {
                await H1EngineFunctions.ExecuteCommand(tbH1SendCommand.Text);

                tbH1SendCommand.Text = "";
            }
        }
Exemplo n.º 2
0
        private async void cbH1CheatToggleChecked(object sender, RoutedEventArgs e)
        {
            var checkbox = sender as CheckBox;

            if (checkbox == null)
            {
                return;
            }

            Halo1Cheat cheat      = (Halo1Cheat)checkbox.Tag;
            bool       newEnabled = checkbox.IsChecked ?? false;

            await H1EngineFunctions.SetCheatEnabled(cheat, newEnabled);
        }
Exemplo n.º 3
0
        private async void btnH1SendCommand_Click(object sender, RoutedEventArgs e)
        {
            await H1EngineFunctions.ExecuteCommand(tbH1SendCommand.Text);

            tbH1SendCommand.Text = "";
        }