protected override CommandLineArgDescriptorList GetParameterDescriptors() { CommandLineArgDescriptor[] collection = new CommandLineArgDescriptor[0]; CommandLineArgDescriptorList list = new CommandLineArgDescriptorList(); list.AddRange(collection); return(list); }
protected override CommandLineArgDescriptorList GetParameterDescriptors() { CommandLineArgDescriptor[] collection = new CommandLineArgDescriptor[] { new CommandLineArgDescriptor(true, "NonEncryptedFile", CommandResources.GetString(CommandResources.ResourceID.ParamDesc_NonEncryptedFile), CommandLineArgDescriptor.ArgumentType.String), new CommandLineArgDescriptor(true, "CompanyName", CommandResources.GetString(CommandResources.ResourceID.ParamDesc_CompanyName), CommandLineArgDescriptor.ArgumentType.String), new CommandLineArgDescriptor(true, "Server", CommandResources.GetString(CommandResources.ResourceID.ParamDesc_Server), CommandLineArgDescriptor.ArgumentType.String), new CommandLineArgDescriptor(true, "Database", CommandResources.GetString(CommandResources.ResourceID.ParamDesc_Database), CommandLineArgDescriptor.ArgumentType.String), new CommandLineArgDescriptor(true, "Timeout", CommandResources.GetString(CommandResources.ResourceID.ParamDesc_Timeout), CommandLineArgDescriptor.ArgumentType.String) }; CommandLineArgDescriptorList list = new CommandLineArgDescriptorList(); list.AddRange(collection); return(list); }
protected override CommandLineArgDescriptorList GetParameterDescriptors() { string paramDesc_Type = CommandResources.GetString(CommandResources.ResourceID.ParamDesc_Type); paramDesc_Type += "[" + ConfigurationManager.AppSettings["Type"] + "]"; string paramDesc_Action = CommandResources.GetString(CommandResources.ResourceID.ParamDesc_Action); paramDesc_Action += "[" + ConfigurationManager.AppSettings["Action"] + "]"; CommandLineArgDescriptor[] collection = new CommandLineArgDescriptor[] { new CommandLineArgDescriptor(true, "Type", paramDesc_Type, CommandLineArgDescriptor.ArgumentType.String), new CommandLineArgDescriptor(true, "Environment", CommandResources.GetString(CommandResources.ResourceID.ParamDesc_Environment), CommandLineArgDescriptor.ArgumentType.String), new CommandLineArgDescriptor(true, "Application", CommandResources.GetString(CommandResources.ResourceID.ParamDesc_Application), CommandLineArgDescriptor.ArgumentType.String), new CommandLineArgDescriptor(true, "Version", CommandResources.GetString(CommandResources.ResourceID.ParamDesc_Version), CommandLineArgDescriptor.ArgumentType.String), new CommandLineArgDescriptor(true, "Adapter", CommandResources.GetString(CommandResources.ResourceID.ParamDesc_Adapter), CommandLineArgDescriptor.ArgumentType.String), new CommandLineArgDescriptor(true, "Action", paramDesc_Action, CommandLineArgDescriptor.ArgumentType.String), new CommandLineArgDescriptor(true, "Log", CommandResources.GetString(CommandResources.ResourceID.ParamDesc_Log), CommandLineArgDescriptor.ArgumentType.Boolean) }; CommandLineArgDescriptorList list = new CommandLineArgDescriptorList(); list.AddRange(collection); return(list); }