//Loads the contract information in a new form for the user selected contract private void select_btn_Click(object sender, EventArgs e) { ContractInfo contractInfoScreen = new ContractInfo(); contractInfoScreen.setSelectedContractNumber(selection_mskedtxtbx.Text); contractInfoScreen.Show(); }
//Loads the contract information in a new form for the user selected contract private void select_btn_Click(object sender, EventArgs e) { if (selection_mskedtxtbx.Text.Length != 9) { MessageBox.Show("Please enter a contract number"); } else { ContractInfo contractInfoScreen = new ContractInfo(selection_mskedtxtbx.Text); this.Close(); } }
//Load a contract information screen for the specified contract private void select_btn_Click(object sender, EventArgs e) { ContractInfo contractInfoScreen = new ContractInfo(maskedtxtbx_Selection.Text, 0); }