internal ArgumentModel(BaseCliArguments cliArguments)
 {
     CliArguments         = cliArguments;
     Options              = cliArguments.GetOptions();
     Operands             = cliArguments.GetOperands();
     EnvironmentVariables = cliArguments.GetEnvironmentVariables();
     Help       = cliArguments.GetHelpAttribute();
     HelpFacade = new HelpFacade(cliArguments);
 }
示例#2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            HelpFacade help     = new HelpFacade();
            string     first    = txtFirstName.Text.ToString();
            string     last     = txtLastName.Text.ToString();
            string     userName = txtUserName.Text.ToString();

            help.AddEmployee(first, last, userName);
        }
示例#3
0
        internal CommandModel(BaseCliCommands cliCommands)
        {
            CliCommands    = cliCommands;
            Commands       = cliCommands.GetCommands();
            DefaultCommand = GetDefaultCommandOrNull(Commands);
            HelpFacade     = new HelpFacade(cliCommands);

            ValidateNoDuplicateNames(Commands);
            ValidateMethodArguments(Commands);
        }
示例#4
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            HelpFacade help    = new HelpFacade();
            string     name    = txtCustName.Text.ToString();
            string     address = txtCustAddress.Text.ToString();
            string     state   = txtCustState.Text.ToString();
            int        zip     = int.Parse(txtCustZip.Text);

            help.AddCustomer(name, address, state, zip);
        }