private void dsGiaoDich_TT_Click(object sender, EventArgs e)
        {
            int idGiaoDich = Convert.ToInt32(giaodichGridView.CurrentRow.Cells[0].Value);
            int trangThai  = Convert.ToInt32(giaodichGridView.CurrentRow.Cells[7].Value);

            if (trangThai == 0)
            {
                MessageBox.Show("Giao dịch chưa được kích hoạt.");
                return;
            }
            if (trangThai == 2)
            {
                MessageBox.Show("Giao dịch đã thanh toán.");
                return;
            }
            gdThanhToanController gdForm = new gdThanhToanController(idGiaoDich);

            gdForm.Show();
        }
Exemple #2
0
 public static void setController(gdThanhToanController ctr)
 {
     ttController = ctr;
 }