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) { } } }
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) { } } }
/// <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(); }
/// <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(); }
/// <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(); }
/// <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(); }