Beispiel #1
0
        private void BtChiTiet_Click1(object sender, EventArgs e)
        {
            Main.Controls.Clear();
            QuanLyLichHoc QL_LichHoc = new QuanLyLichHoc(LH_Tuan.Ma_LopHoc);

            QL_LichHoc.btQuayLai.Click  += BtQuayLai_Click3;
            QL_LichHoc.btChiTiet.Visible = false;
            Main.Controls.Add(QL_LichHoc);
        }
Beispiel #2
0
 private void DgLopHoc_CellClick1(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex == -1)
     {
         return;
     }
     Ma_LopHoc_1 = QlLopHoc.dgLopHoc.Rows[e.RowIndex].Cells["Ma_LopHoc"].Value.ToString();
     QlLichHoc   = new QuanLyLichHoc(Ma_LopHoc_1);
     Main.Controls.Clear();
     Main.Controls.Add(QlLichHoc);
     QlLichHoc.btChiTiet.Click     += BtChiTiet_Click;
     QlLichHoc.btQuayLai.Click     += BtQuayLai_Click;
     QlLichHoc.btDanhSachLop.Click += BtDanhSachLop_Click;
 }
Beispiel #3
0
 private void BtChiTiet_Click2(object sender, EventArgs e)
 {
     Ma_LopHoc_1 = QlLopHoc.txbMa_LopHoc.Text;
     if (Ma_LopHoc_1 == "")
     {
         MessageBox.Show("Vui lòng chọn lớp học", "Thông báo");
         return;
     }
     QlLichHoc = new QuanLyLichHoc(Ma_LopHoc_1, 1);
     Main.Controls.Clear();
     Main.Controls.Add(QlLichHoc);
     QlLichHoc.btChiTiet.Click     += BtChiTiet_Click;
     QlLichHoc.btQuayLai.Click     += BtQuayLai_Click;
     QlLichHoc.btDanhSachLop.Click += BtDanhSachLop_Click;
 }