示例#1
0
 public override void Action(object[] args = null, string moduleName = null)
 {
     if (args == null || args.Length == 0)
     {
         Error = new NullValueError();
     }
     else
     {
         Message = ProjectManager.AddFiles(moduleName, args as string[]);
     }
 }
示例#2
0
 public void Action(object[] args)
 {
     if (args == null || args.Length < 1)
     {
         Error = new NullValueError();
     }
     else
     {
         SaveFileDialog saveFileDialog = new SaveFileDialog();
         saveFileDialog.Filter = Filter;
         if (saveFileDialog.ShowDialog() == true)
         {
             File.WriteAllText(saveFileDialog.FileName, args[0].ToString());
         }
     }
 }