GetFilePath() public method

public GetFilePath ( ) : string
return string
 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();
   }
 }
示例#2
0
        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();
            }
        }