private void commandExplorer_CommandGenerated(string commandSyntax, CommandProcessingMode processingMode)
 {
     programEditor.AddCommand(commandSyntax);
     programEditor.Focus();
     if (processingMode == CommandProcessingMode.Save_And_Execute)
     {
         this.EpiInterpreter.Context.SetOneCommandMode();
         this.EpiInterpreter.Context.ResetWhileSelected();
         try
         {
             RunCommand(commandSyntax);
         }
         catch (Exception ex)
         {
         }
     }
 }
Esempio n. 2
0
        private void commandExplorer_CommandGenerated(string commandSyntax, CommandProcessingMode processingMode)
        {
            programEditor.AddCommand(commandSyntax);
            programEditor.Focus();
            if (processingMode == CommandProcessingMode.Save_And_Execute)
            {
                this.EpiInterpreter.Context.SetOneCommandMode();
                this.EpiInterpreter.Context.ResetWhileSelected();
                try
                {
                    RunCommand(commandSyntax);

                }
                catch (Exception ex)
                {

                }
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Sets the processing mode and generates command
 /// </summary>
 /// <param name="sender">Object that fired the event.</param>
 /// <param name="e">.NET supplied event args.</param>
 protected void btnSaveOnly_Click(object sender, System.EventArgs e)
 {
     processingMode = CommandProcessingMode.Save_Only;
     OnOK();
 }
Esempio n. 4
0
 /// <summary>
 /// Sets the processing mode and generates command
 /// </summary>
 /// <param name="sender">Object that fired the event.</param>
 /// <param name="e">.NET supplied event args.</param>
 protected virtual void btnOK_Click(object sender, System.EventArgs e)
 {
     processingMode = CommandProcessingMode.Save_And_Execute;
     OnOK();
 }
Esempio n. 5
0
 /// <summary>
 /// Sets the processing mode and generates command 
 /// </summary>
 /// <param name="sender">Object that fired the event.</param>
 /// <param name="e">.NET supplied event args.</param>
 protected void btnSaveOnly_Click(object sender, System.EventArgs e)
 {
     processingMode = CommandProcessingMode.Save_Only;
     OnOK();
 }
Esempio n. 6
0
 /// <summary>
 /// Sets the processing mode and generates command 
 /// </summary>
 /// <param name="sender">Object that fired the event.</param>
 /// <param name="e">.NET supplied event args.</param>
 protected virtual void btnOK_Click(object sender, System.EventArgs e)
 {
     processingMode = CommandProcessingMode.Save_And_Execute;
     OnOK();
 }