private void pbElements_Click(object sender, EventArgs e) { frmScriptElements scriptElementForm = new frmScriptElements(); scriptElementForm.ScriptContext = (ScriptContext)ScriptContext; scriptElementForm.ShowDialog(); scriptElementForm.Dispose(); }
private void pbElements_Click(object sender, EventArgs e) { frmScriptElements scriptElementForm = new frmScriptElements(); scriptElementForm.ScriptElements = new List<ScriptElement>(ScriptElements); scriptElementForm.ShowDialog(); if (scriptElementForm.DialogResult == DialogResult.OK) ScriptElements = scriptElementForm.ScriptElements; scriptElementForm.Dispose(); }
private void pbElements_Click(object sender, EventArgs e) { frmScriptElements scriptElementForm = new frmScriptElements(); scriptElementForm.ScriptElements = ScriptElements; scriptElementForm.ShowDialog(); if (scriptElementForm.DialogResult == DialogResult.OK) { ScriptElements = scriptElementForm.ScriptElements; } }
private void OpenElementManager() { frmScriptElements scriptElementEditor = new frmScriptElements(); scriptElementEditor.ScriptName = uiScriptTabControl.SelectedTab.Name; scriptElementEditor.ScriptElements = _scriptElements; if (scriptElementEditor.ShowDialog() == DialogResult.OK) { CreateUndoSnapshot(); _scriptElements = scriptElementEditor.ScriptElements; } }
private void OpenElementManager() { frmScriptElements scriptElementEditor = new frmScriptElements { ScriptName = uiScriptTabControl.SelectedTab.Name, ScriptContext = ScriptContext }; if (scriptElementEditor.ShowDialog() == DialogResult.OK) { CreateUndoSnapshot(); } scriptElementEditor.Dispose(); ScriptContext.AddIntellisenseControls(Controls); }
private void OpenElementManager() { frmScriptElements scriptElementEditor = new frmScriptElements { ScriptName = uiScriptTabControl.SelectedTab.Name, ScriptElements = new List <ScriptElement>(ScriptElements) }; if (scriptElementEditor.ShowDialog() == DialogResult.OK) { CreateUndoSnapshot(); ScriptElements = scriptElementEditor.ScriptElements; } scriptElementEditor.Dispose(); }
private void OpenElementManager() { if (!(_selectedTabScriptActions is ListView)) { return; } frmScriptElements scriptElementEditor = new frmScriptElements { ScriptName = uiScriptTabControl.SelectedTab.Name, ScriptElements = new List <ScriptElement>(_scriptElements) }; if (scriptElementEditor.ShowDialog() == DialogResult.OK) { CreateUndoSnapshot(); _scriptElements = scriptElementEditor.ScriptElements; uiScriptTabControl.SelectedTab.Tag = new ScriptObject(_scriptVariables, _scriptArguments, _scriptElements); } scriptElementEditor.Dispose(); }