Esempio n. 1
0
        private void btnTra_Click(object sender, EventArgs e)
        {
            GIDPhong = Convert.ToInt32(dgvTKB.Rows[rNum].Cells[0].Value.ToString());
            GTietBD  = Convert.ToInt32(dgvTKB.Rows[rNum].Cells[4].Value.ToString());
            GTietKT  = Convert.ToInt32(dgvTKB.Rows[rNum].Cells[5].Value.ToString());
            GNgay    = Convert.ToDateTime(dgvTKB.Rows[rNum].Cells[6].Value);
            Tra Tra = new Tra(this);

            Tra.ShowDialog();
        }
Esempio n. 2
0
 private void btnTra_Click(object sender, EventArgs e)
 {
     if (rNum == -1)
     {
         MessageBox.Show("Chưa chọn phòng!!");
     }
     else
     {
         GIDPhong = Convert.ToInt32(dgvTKB.Rows[rNum].Cells[0].Value.ToString());
         GTietBD  = Convert.ToInt32(dgvTKB.Rows[rNum].Cells[4].Value.ToString());
         GTietKT  = Convert.ToInt32(dgvTKB.Rows[rNum].Cells[5].Value.ToString());
         GNgay    = Convert.ToDateTime(dgvTKB.Rows[rNum].Cells[6].Value);
         Tra Tra = new Tra(this);
         Tra.ShowDialog();
     }
 }
Esempio n. 3
0
        private void btnT_Click(object sender, EventArgs e)
        {
            Tra t = new Tra();

            t.ShowDialog();
        }