コード例 #1
0
        public ExceptionView()
        {
            InitializeComponent();
            SetLanguage();

            CommentTextBox.Focus();
            CommentTextBox.SelectAll();

            if (Debugger.IsAttached)
            {
                ThrowButton.Visibility   = Visibility.Visible;
                ReportCheckBox.IsChecked = false;
            }
        }
コード例 #2
0
        private void NewBug_CheckedChanged(object sender, EventArgs e)
        {
            if (NewBug.IsChecked.Value)
            {
                CommentTextBox.SelectAll();
                CommentTextBox.Focus();
            }
            else
            {
                BugIDTextBox.SelectAll();
                BugIDTextBox.Focus();
            }

            ValidateData(null, null);
        }
コード例 #3
0
        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);
        }