Ejemplo n.º 1
0
        public static void Setup()
        {
            PathValidation = new CommandLineArgValidationOption();
            PathValidation.ArgumentName = string.Empty;
            PathValidation.Requirements = ArgRequirement.Required | ArgRequirement.Unique | ArgRequirement.ValueRequired;

            Validations    = new CommandLineArgValidationOption[1];
            Validations[0] = PathValidation;
        }
Ejemplo n.º 2
0
        public static void Setup()
        {
            HeaderLine = CreateLine("NAME", "TYPE", "STATUS", HeaderColor, TextModifiers.Bold | TextModifiers.Underline);

            var pathArgValidation = new CommandLineArgValidationOption();

            pathArgValidation.ArgumentName = string.Empty;
            pathArgValidation.Requirements = ArgRequirement.ValueRequired;

            ArgValidationOptions = new[] { pathArgValidation };
        }
Ejemplo n.º 3
0
        public static void Setup()
        {
            PathValidation = new CommandLineArgValidationOption();
            PathValidation.ArgumentName = PathArgName;
            PathValidation.Requirements = ArgRequirement.Required | ArgRequirement.ValueRequired;

            TerminalValidation = new CommandLineArgValidationOption();
            TerminalValidation.ArgumentName = TerminalArgName;
            TerminalValidation.Requirements = ArgRequirement.None;

            Validations = new[] { PathValidation, TerminalValidation };
        }
Ejemplo n.º 4
0
        public static void Setup()
        {
            PathValidation = new CommandLineArgValidationOption();
            PathValidation.ArgumentName = PathArgName;
            PathValidation.Requirements = ArgRequirement.Required | ArgRequirement.ValueRequired;

            PasswordValidation = new CommandLineArgValidationOption();
            PasswordValidation.ArgumentName = PasswordArgName;
            PasswordValidation.Requirements = ArgRequirement.Required | ArgRequirement.ValueRequired;

            Validations = new[] { PasswordValidation, PathValidation };
        }
Ejemplo n.º 5
0
        public static void Setup(Object aditionalData)
        {
            AditionalData = aditionalData as MapAditionalData;
            DebugUtil.Assert(AditionalData == null, "MapProgram's aditional data is not a MapAditionalData!");

            LatitudeValidation = new CommandLineArgValidationOption();
            LatitudeValidation.ArgumentName = LatitudeParameterName;
            LatitudeValidation.Requirements = ArgRequirement.Required | ArgRequirement.ValueRequired;

            LongitudeValidation = new CommandLineArgValidationOption();
            LongitudeValidation.ArgumentName = LongitudeParameterName;
            LongitudeValidation.Requirements = ArgRequirement.Required | ArgRequirement.ValueRequired;

            Validations = new[] { LatitudeValidation, LongitudeValidation };
        }
Ejemplo n.º 6
0
        public static void Setup()
        {
            Validations = new CommandLineArgValidationOption[2];

            ModeValidation = new CommandLineArgValidationOption();
            ModeValidation.ArgumentName = ModeArgName;
            ModeValidation.Requirements = ArgRequirement.Unique | ArgRequirement.ValueRequired;

            CountValidation = new CommandLineArgValidationOption();
            CountValidation.ArgumentName = CountArgName;
            CountValidation.Requirements = ArgRequirement.Unique | ArgRequirement.ValueRequired;

            Validations[0] = ModeValidation;
            Validations[1] = CountValidation;
        }
Ejemplo n.º 7
0
        public static void Setup()
        {
            HintValidation = new CommandLineArgValidationOption();
            HintValidation.ArgumentName = HintArgName;
            HintValidation.Requirements = ArgRequirement.Required | ArgRequirement.ValueRequired;

            DeviceValidation = new CommandLineArgValidationOption();
            DeviceValidation.ArgumentName = DeviceArgName;
            DeviceValidation.Requirements = ArgRequirement.ValueRequired;

            UsernameValidation = new CommandLineArgValidationOption();
            UsernameValidation.ArgumentName = UsernameArgName;
            UsernameValidation.Requirements = ArgRequirement.ValueRequired;

            FileValidation = new CommandLineArgValidationOption();
            FileValidation.ArgumentName = FileArgName;
            FileValidation.Requirements = ArgRequirement.ValueRequired;

            Validations = new[] { HintValidation, DeviceValidation, FileValidation };
        }