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); }