private void buttonInstallationVars_Click(object sender, EventArgs e) { ConditionVariablesForm avf = new ConditionVariablesForm(); avf.Init("Configuration items for installation - specialist use", this.Icon, actionfile.installationvariables, showone: false); if (avf.ShowDialog(this) == DialogResult.OK) { actionfile.ChangeInstallationVariables(avf.result); } }
private void Dmf_OnEditGlobals() // edit the globals { ConditionVariablesForm avf = new ConditionVariablesForm(); avf.Init("Global User variables to pass to program on run", this.Icon, PersistentVariables, showone: true); if (avf.ShowDialog(discoveryform) == DialogResult.OK) { LoadPeristentVariables(avf.result); } }
private void Dmf_OnEditGlobals() { ConditionVariablesForm avf = new ConditionVariablesForm(); avf.Init("Global User variables to pass to program on run", persistentglobalvariables, showone: true); if (avf.ShowDialog(discoveryform.FindForm()) == DialogResult.OK) { persistentglobalvariables = avf.result; globalvariables = new ConditionVariables(programrunglobalvariables, persistentglobalvariables); // remake } }
private void Paras_Click(object sender, EventArgs e) // FULL { ConditionVariables cond = new ConditionVariables(); string flag = ""; if (paras.Text.Length > 0) { cond.FromActionDataString(paras.Text, out flag); } ConditionVariablesForm avf = new ConditionVariablesForm(); avf.Init("Input parameters and flags to pass to program on run", this.Icon, cond, showone: true, showrefresh: true, showrefreshstate: flag.Equals(ConditionVariables.flagRunAtRefresh)); if (avf.ShowDialog(this) == DialogResult.OK) { cd.actiondata = paras.Text = avf.result.ToActionDataString(avf.result_refresh ? ConditionVariables.flagRunAtRefresh : ""); } }
public bool ConfigurationMenu(Form parent, ActionCoreController cp, List <string> eventvars, bool allowaddv, bool allownoexpandv) { ConditionVariables av; Dictionary <string, string> operations; FromString(userdata, out av, out operations); ConditionVariablesForm avf = new ConditionVariablesForm(); avf.Init("Define Variable:", cp.Icon, av, showone: true, allowadd: allowaddv, allownoexpand: allownoexpandv, altops: operations, allowmultiple: false); if (avf.ShowDialog(parent.FindForm()) == DialogResult.OK) { userdata = ToString(avf.result, avf.result_altops); return(true); } else { return(false); } }
public bool ConfigurationMenu(Form parent, EDDiscoveryForm discoveryform, List <string> eventvars, bool allowaddv, bool allownoexpandv) { ConditionVariables av; Dictionary <string, string> operations; FromString(userdata, out av, out operations); ConditionVariablesForm avf = new ConditionVariablesForm(); avf.Init("Variable list:", discoveryform.theme, av, showone: true, allowadd: allowaddv, allownoexpand: allownoexpandv, altops: operations); if (avf.ShowDialog(parent.FindForm()) == DialogResult.OK) { userdata = ToString(avf.result, avf.result_altops); return(true); } else { return(false); } }
public override bool ConfigurationMenu(Form parent, ActionCoreController cp, List <string> eventvars) { string progname; ConditionVariables cond; Dictionary <string, string> altops; FromString(UserData, out progname, out cond, out altops); string promptValue = ExtendedControls.PromptSingleLine.ShowDialog(parent, "Program to call (use set::prog if req)", progname, "Configure Call Command", cp.Icon); if (promptValue != null) { ConditionVariablesForm avf = new ConditionVariablesForm(); avf.Init("Variables to pass into called program", cp.Icon, cond, showone: true, allownoexpand: true, altops: altops); if (avf.ShowDialog(parent.FindForm()) == DialogResult.OK) { userdata = ToString(promptValue, avf.result, avf.result_altops); return(true); } } return(false); }