private void NewIssue_CheckedChanged(object sender, EventArgs e) { if (NewIssue.IsChecked.Value) { ProjectControls.Visibility = Visibility.Visible; SummaryControls.Visibility = Visibility.Visible; DescriptionControls.Visibility = Visibility.Visible; IssueIDControls.Visibility = Visibility.Collapsed; SummaryTextBox.SelectAll(); SummaryTextBox.Focus(); } else { ProjectControls.Visibility = Visibility.Collapsed; SummaryControls.Visibility = Visibility.Collapsed; DescriptionControls.Visibility = Visibility.Collapsed; IssueIDControls.Visibility = Visibility.Visible; IssueIDTextBox.SelectAll(); IssueIDTextBox.Focus(); } ValidateData(null, null); }
private void SummaryTextBox_KeyDown(object sender, KeyEventArgs e) { if (e.Control && e.KeyCode == Keys.A) { SummaryTextBox.SelectAll(); } }