internal ArgumentModel(BaseCliArguments cliArguments) { CliArguments = cliArguments; Options = cliArguments.GetOptions(); Operands = cliArguments.GetOperands(); EnvironmentVariables = cliArguments.GetEnvironmentVariables(); Help = cliArguments.GetHelpAttribute(); HelpFacade = new HelpFacade(cliArguments); }
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); }
internal CommandModel(BaseCliCommands cliCommands) { CliCommands = cliCommands; Commands = cliCommands.GetCommands(); DefaultCommand = GetDefaultCommandOrNull(Commands); HelpFacade = new HelpFacade(cliCommands); ValidateNoDuplicateNames(Commands); ValidateMethodArguments(Commands); }
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); }