Beispiel #1
0
 private void EditScriptContent(object sender, EventArgs e)
 {
     using (var cmd = Dynamo.Logging.Analytics.TrackCommandEvent("PythonEdit"))
     {
         if (editWindow != null)
         {
             editWindow.Activate();
         }
         else
         {
             editWindow = new ScriptEditorWindow(dynamoViewModel, pythonNodeModel, pythonNodeView, ref editorWindowRect);
             editWindow.Initialize(workspaceModel.Guid, pythonNodeModel.GUID, "ScriptContent", pythonNodeModel.Script);
             editWindow.Closed += editWindow_Closed;
             editWindow.Show();
         }
     }
 }
Beispiel #2
0
 private void EditScriptContent()
 {
     using (var cmd = Dynamo.Logging.Analytics.TrackCommandEvent("PythonEdit"))
     {
         if (editWindow != null)
         {
             editWindow.Activate();
         }
         else
         {
             editWindow = new ScriptEditorWindow(dynamoViewModel, model, view);
             editWindow.Initialize(model.GUID, "ScriptContent", model.Script);
             editWindow.Closed += editWindow_Closed;
             editWindow.Show();
         }
     }
 }