Esempio n. 1
0
 private void EditScriptContent()
 {
     var editWindow = new ScriptEditorWindow(dynamoViewModel);
     editWindow.Initialize(model.GUID, "ScriptContent", model.Script);
     bool? acceptChanged = editWindow.ShowDialog();
     if (acceptChanged.HasValue && acceptChanged.Value)
     {
         model.ForceReExecuteOfNode = true;
         model.OnAstUpdated();
     }
 }
Esempio n. 2
0
        private void EditScriptContent()
        {
            var editWindow = new ScriptEditorWindow();

            editWindow.Initialize(GUID, "ScriptContent", Script);
            bool?acceptChanged = editWindow.ShowDialog();

            if (acceptChanged.HasValue && acceptChanged.Value)
            {
                this.RequiresRecalc = true;
            }
        }
Esempio n. 3
0
        private void EditScriptContent()
        {
            var editWindow = new ScriptEditorWindow(dynamoViewModel);

            editWindow.Initialize(model.GUID, "ScriptContent", model.Script);
            bool?acceptChanged = editWindow.ShowDialog();

            if (acceptChanged.HasValue && acceptChanged.Value)
            {
                // Mark node for update
                model.OnNodeModified();
            }
        }