private void OpenArgumentManager() { if (!(_selectedTabScriptActions is ListView)) { return; } frmScriptArguments scriptArgumentEditor = new frmScriptArguments(_typeContext) { ScriptName = uiScriptTabControl.SelectedTab.Name, ScriptVariables = new List <ScriptVariable>(_scriptVariables), ScriptArguments = new List <ScriptArgument>(_scriptArguments) }; if (scriptArgumentEditor.ShowDialog() == DialogResult.OK) { _scriptArguments = scriptArgumentEditor.ScriptArguments; uiScriptTabControl.SelectedTab.Tag = new ScriptObject(_scriptVariables, _scriptArguments, _scriptElements); if (!uiScriptTabControl.SelectedTab.Text.Contains(" *")) { uiScriptTabControl.SelectedTab.Text += " *"; } } ResetVariableArgumentBindings(); scriptArgumentEditor.Dispose(); }
private void OpenArgumentManager() { frmScriptArguments scriptArgumentEditor = new frmScriptArguments(TypeContext) { ScriptName = uiScriptTabControl.SelectedTab.Name, ScriptContext = ScriptContext }; if (scriptArgumentEditor.ShowDialog() == DialogResult.OK) { if (!uiScriptTabControl.SelectedTab.Text.Contains(" *")) { uiScriptTabControl.SelectedTab.Text += " *"; } } ResetVariableArgumentBindings(); scriptArgumentEditor.Dispose(); ScriptContext.AddIntellisenseControls(Controls); }
private void OpenArgumentManager() { frmScriptArguments scriptArgumentEditor = new frmScriptArguments(TypeContext) { ScriptName = uiScriptTabControl.SelectedTab.Name, ScriptVariables = new List <ScriptVariable>(ScriptVariables), ScriptArguments = new List <ScriptArgument>(ScriptArguments) }; if (scriptArgumentEditor.ShowDialog() == DialogResult.OK) { ScriptArguments = scriptArgumentEditor.ScriptArguments; if (!uiScriptTabControl.SelectedTab.Text.Contains(" *")) { uiScriptTabControl.SelectedTab.Text += " *"; } } ResetVariableArgumentBindings(); scriptArgumentEditor.Dispose(); }