public static void ShowFileNewDialog( object sender, ScriptEditor.Model.NewScriptUserInterfaceArgs args ) { // provide for new command scripts or standard python scripts FileNewForm frm = new FileNewForm(); if ( frm.ShowDialog() == DialogResult.OK ) { args.CreateScript = true; args.FileName = frm.GetFilePath(); args.Script = frm.GetScriptString(); } }
public static void ShowFileNewDialog(object sender, ScriptEditor.Model.NewScriptUserInterfaceArgs args) { // provide for new command scripts or standard python scripts FileNewForm frm = new FileNewForm(); if (frm.ShowDialog() == DialogResult.OK) { args.CreateScript = true; args.FileName = frm.GetFilePath(); args.Script = frm.GetScriptString(); } }