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[]); } }
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()); } } }