private void btnDeliver_Click(object sender, EventArgs e) { TransactionBLL transactionBLL = new TransactionBLL(); if (transactionBLL.SetStatus("Delivering", IDTrans)) { MessageBox.Show("Delevering"); } this.Close(); }
private void btnCancel_Click(object sender, EventArgs e) { // Cong lai so luong trong bang tree TreeBLL treeBLL = new TreeBLL(); foreach (DataRow row in dt.Rows) { string name = row.Field <string>(2).ToString(); int quantity = int.Parse(row.Field <int>(3).ToString()); treeBLL.IncreaseQuantity(name, quantity); } TransactionBLL transactionBLL = new TransactionBLL(); if (transactionBLL.SetStatus("Cancel", IDTrans)) { MessageBox.Show("Cancel"); } this.Close(); }