コード例 #1
0
 private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (CommentTextBox != null)
     {
         CommentTextBox.Focus();
     }
 }
コード例 #2
0
 public void Init(uint textid, string str)
 {
     TargetTextBox.Text  = str;
     OrignalCommandText  = Program.UseTextIDCache.GetName(textid);
     CommentTextBox.Text = OrignalCommandText;
     CommentTextBox.Focus();
 }
コード例 #3
0
        public void ChangeComment()
        {
            int i = this.Script.SelectedIndex;

            if (i < 0 || i >= this.Script.Items.Count)
            {
                return;
            }
            ShowFloatingControlpanel();
            CommentTextBox.Focus();
        }
コード例 #4
0
        public ExceptionView()
        {
            InitializeComponent();
            SetLanguage();

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

            if (Debugger.IsAttached)
            {
                ThrowButton.Visibility   = Visibility.Visible;
                ReportCheckBox.IsChecked = false;
            }
        }
コード例 #5
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);
        }
コード例 #6
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);
        }
 public void Init(FELint.ErrorSt error)
 {
     ErrorTextBox.Text = U.ToHexString(error.Addr) 
         + "\r\n" + error.ErrorMessage;
     CommentTextBox.Focus();
 }
コード例 #8
0
 private void TreeView_ReplyRequested(object sender, RoutedEventArgs e)
 {
     parent = ((sender as TreeViewItem)?.Content as CommentViewModel);
     CommentTextBox.Focus(FocusState.Keyboard);
 }