Пример #1
0
 public override void Execute()
 {
     if ((int)SharedViewState.Instance.CurrentView < 4)
     {
         mainFormView.SendStringAsKey("^V"); //expressionTextBox.Paste();
     }
     else if ((int)SharedViewState.Instance.CurrentView == 4)
     {
         if (scriptingCodeEditor.Focused)
         {
             scriptingCodeEditor.Paste();
         }
         else
         {
             mainFormView.SendStringAsKey("^V");
         }
     }
     else
     {
         if (customFunctionsCodeEditor.Focused)
         {
             customFunctionsCodeEditor.Paste();
         }
         else
         {
             mainFormView.SendStringAsKey("^V");
         }
     }
 }
Пример #2
0
 public override void Execute()
 {
     if ((int)_sharedViewState.CurrentView < 4)
     {
         _applicationManager.SendStringAsKey("^V"); //expressionTextBox.Paste();
     }
     else if ((int)_sharedViewState.CurrentView == 4)
     {
         if (scriptingCodeEditor.Focused)
         {
             scriptingCodeEditor.Paste();
         }
         else
         {
             _applicationManager.SendStringAsKey("^V");
         }
     }
     else
     {
         if (customFunctionsCodeEditor.Focused)
         {
             customFunctionsCodeEditor.Paste();
         }
         else
         {
             _applicationManager.SendStringAsKey("^V");
         }
     }
 }