コード例 #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     //Confirm if the user wants to cancel the delivery || change the transaction to deliver
     if (txttransactionid.Text != "Transaction ID")
     {
         DialogResult result = MessageBox.Show("Are you sure you want cancel the delivery?",
                                               "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (result == DialogResult.Yes)
         {
             db.sp_delete_CustomerDelivery(txtDeliveryNo.Text);
             GendelID(txtDeliveryNo);
             gbDelivery.Hide();
             gbOrderDetails.Show();
         }
     }
     //Select a customer
     else
     {
         gbDelivery.Hide();
         gbOrderDetails.Show();
     }
 }