private void metroButton5_Click(object sender, EventArgs e)
 {
     if (this.ordId != null)
     {
         if (metroComboBox2.Text != "")
         {
             OrderListData oLd = new OrderListData();
             if (oLd.ChangeOrderStatus(this.ordId, metroComboBox2.Text) == true)
             {
                 MessageBox.Show("Order Assigned", "Success");
                 Init2();
             }
             else
             {
                 MessageBox.Show("Please Check Again", "Error");
             }
         }
         else
         {
             MessageBox.Show("Please Select A Department", "Error");
         }
     }
     else
     {
         MessageBox.Show("Please Click On An Order Data", "Error");
     }
 }
示例#2
0
 private void Cancel_Click(object sender, EventArgs e)
 {
     if (this.ordId != null)
     {
         OrderListData oLd = new OrderListData();
         if (oLd.ChangeOrderStatus(this.ordId, "Cancelled") == true)
         {
             MessageBox.Show("Order Cancelled", "Success");
             Init();
         }
         else
         {
             MessageBox.Show("Please Check Again", "Error");
         }
     }
     else
     {
         MessageBox.Show("Please Click On An Order Data", "Error");
     }
 }