Exemple #1
0
 private void btnManage_Click(object sender, EventArgs e)
 {
     string selectedPO = listPOs.SelectedItem.ToString();
     ViewPO vpo = new ViewPO(selectedPO, "load");
     vpo.Show();
     vpo.BringToFront();
 }
Exemple #2
0
 //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();
     }
 }