private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (CommentTextBox != null) { CommentTextBox.Focus(); } }
public void Init(uint textid, string str) { TargetTextBox.Text = str; OrignalCommandText = Program.UseTextIDCache.GetName(textid); CommentTextBox.Text = OrignalCommandText; CommentTextBox.Focus(); }
public void ChangeComment() { int i = this.Script.SelectedIndex; if (i < 0 || i >= this.Script.Items.Count) { return; } ShowFloatingControlpanel(); CommentTextBox.Focus(); }
public ExceptionView() { InitializeComponent(); SetLanguage(); CommentTextBox.Focus(); CommentTextBox.SelectAll(); if (Debugger.IsAttached) { ThrowButton.Visibility = Visibility.Visible; ReportCheckBox.IsChecked = false; } }
private void NewBug_CheckedChanged(object sender, EventArgs e) { if (NewBug.IsChecked.Value) { CommentTextBox.SelectAll(); CommentTextBox.Focus(); } else { BugIDTextBox.SelectAll(); BugIDTextBox.Focus(); } ValidateData(null, null); }
private void NewIssue_CheckedChanged(object sender, EventArgs e) { if (NewIssue.IsChecked.Value) { CommentControls.Visibility = Visibility.Visible; IssueNumberControls.Visibility = Visibility.Collapsed; CommentTextBox.SelectAll(); CommentTextBox.Focus(); } else { CommentControls.Visibility = Visibility.Collapsed; IssueNumberControls.Visibility = Visibility.Visible; IssueNumberTextBox.SelectAll(); IssueNumberTextBox.Focus(); } ValidateData(null, null); }
public void Init(FELint.ErrorSt error) { ErrorTextBox.Text = U.ToHexString(error.Addr) + "\r\n" + error.ErrorMessage; CommentTextBox.Focus(); }
private void TreeView_ReplyRequested(object sender, RoutedEventArgs e) { parent = ((sender as TreeViewItem)?.Content as CommentViewModel); CommentTextBox.Focus(FocusState.Keyboard); }