Exemplo n.º 1
0
 private void clearButton_Click(object sender, EventArgs e)
 {
     findProcTxt.Text = "";
     FindProcTxtLeave(null, null);
     outlineTree.Focus();
     if (PluginBase.MainForm.CurrentDocument.IsEditable)
     {
         PluginBase.MainForm.CurrentDocument.SciControl.Focus();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Go to the matched declaration on Enter - clear field on Escape
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void FindProcTxtKeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         e.Handled = true;
         if (findProcTxt.Text != searchInvitation)
         {
             TreeNode node = FindMatch(classTree.Nodes);
             if (node != null)
             {
                 classTree.SelectedNode = node;
                 delayedClassTreeSelect(null, null);
             }
         }
     }
     else if (e.KeyCode == Keys.Escape)
     {
         findProcTxt.Text = "";
         FindProcTxtLeave(null, null);
         classTree.Focus();
     }
 }