private async void tbH1SendCommand_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Return) { await H1EngineFunctions.ExecuteCommand(tbH1SendCommand.Text); tbH1SendCommand.Text = ""; } }
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); }
private async void btnH1SendCommand_Click(object sender, RoutedEventArgs e) { await H1EngineFunctions.ExecuteCommand(tbH1SendCommand.Text); tbH1SendCommand.Text = ""; }