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(); } } }
private void EditScriptContent() { using (var cmd = Dynamo.Logging.Analytics.TrackCommandEvent("PythonEdit")) { if (editWindow != null) { editWindow.Activate(); } else { editWindow = new ScriptEditorWindow(dynamoViewModel, model, view, ref editorWindowRect); editWindow.Initialize(model.GUID, "ScriptContent", model.Script); editWindow.Closed += editWindow_Closed; editWindow.Show(); } } }