コード例 #1
0
        private void pbElements_Click(object sender, EventArgs e)
        {
            frmScriptElements scriptElementForm = new frmScriptElements();

            scriptElementForm.ScriptContext = (ScriptContext)ScriptContext;
            scriptElementForm.ShowDialog();

            scriptElementForm.Dispose();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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;
            }
        }
コード例 #4
0
        private void OpenElementManager()
        {
            frmScriptElements scriptElementEditor = new frmScriptElements();

            scriptElementEditor.ScriptName     = uiScriptTabControl.SelectedTab.Name;
            scriptElementEditor.ScriptElements = _scriptElements;

            if (scriptElementEditor.ShowDialog() == DialogResult.OK)
            {
                CreateUndoSnapshot();
                _scriptElements = scriptElementEditor.ScriptElements;
            }
        }
コード例 #5
0
        private void OpenElementManager()
        {
            frmScriptElements scriptElementEditor = new frmScriptElements
            {
                ScriptName    = uiScriptTabControl.SelectedTab.Name,
                ScriptContext = ScriptContext
            };

            if (scriptElementEditor.ShowDialog() == DialogResult.OK)
            {
                CreateUndoSnapshot();
            }

            scriptElementEditor.Dispose();
            ScriptContext.AddIntellisenseControls(Controls);
        }
コード例 #6
0
        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();
        }
コード例 #7
0
        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();
        }