private void btnManage_Click(object sender, EventArgs e) { string selectedPO = listPOs.SelectedItem.ToString(); ViewPO vpo = new ViewPO(selectedPO, "load"); vpo.Show(); vpo.BringToFront(); }
//grab the name of the customer from the combobox and save it to our local copy of the quote. Then open the quoting info form private void btnSubmitExisting_Click(object sender, EventArgs e) { if (cmbCustomerName.Text != "") { //grab customer name custID = getCustID(custName); if (target == "quote") { NewQuoteInfo newQuote = new NewQuoteInfo(custID); newQuote.Show(); newQuote.BringToFront(); } else if(target == "po") { ViewPO vpo = new ViewPO(custID); vpo.Show(); vpo.BringToFront(); } this.Close(); } }