private void testToolStripMenuItem_Click(object sender, EventArgs e) { GUI.Bill.fCheckOut frm = new GUI.Bill.fCheckOut(); this.Hide(); frm.ShowDialog(); this.Show(); Load_Data(); }
private void btn_edit_Click(object sender, EventArgs e) { if (this.id_bill != 0) { if (Bill_BUS.Instance.CheckConfirmBill(id_bill) == false) { fCheckOut frm = new fCheckOut(); frm.Id_bill = this.Id_bill; frm.ShowDialog(); this.Load_Data(); } else { MessageBox.Show("This bill is not check out"); this.Id_bill = 0; } } else { MessageBox.Show("You must select Bill"); this.id_bill = 0; } }