示例#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();
     }
 }
示例#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;
            }
        }
示例#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();
            }
        }