Ejemplo n.º 1
0
 private void btnEnter_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     //this.Hide();
     if (this.Flag == true)
     {
         ChonBaiHocForm frm = new ChonBaiHocForm(this);
         frm.Location = Location;
         frm.Show();
         this.Cursor = Cursors.Default;
     }
     else
     {
         ChonGiaiTriForm frm = new ChonGiaiTriForm();
         frm.Location = Location;
         frm.Show();
         this.Cursor = Cursors.Default;
     }
 }
Ejemplo n.º 2
0
 public LuyenTuVaCauForm(string strMaBaiHoc, ChonBaiHocForm MyParent)
 {
     InitializeComponent();
     frmParent = MyParent;
     frmParent.Hide();
     try
     {
         DanhSachDeBai = FileLuyenTapBUS.LayFileTheoMaBaiHoc(strMaBaiHoc);
         if (DanhSachDeBai.Count == 0)
         {
             MessageBox.Show("Không có dữ liệu cho bài học này");
             frmParent.Show();
             this.Close();
         }
         else
         {
             this.picCTCauTiepTheo.Visible = false;
             this.intDeBaiHienTai          = 0;
             this.picCTCauTruoc.Visible    = false;
             this.arrDanhSachCauDuocChon   = new List <int>();
             if (DanhSachDeBai.Count <= 1)
             {
                 this.picCTCauTiepTheo.Visible = false;
             }
             else
             {
                 this.picCTCauTiepTheo.Visible = true;
             }
         }
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message);
         this.Dispose();
     }
 }
Ejemplo n.º 3
0
 private void btnHome_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
 {
     Close();
     frmParent.Show();
     frmParent.Cursor = Cursors.Default;
 }
Ejemplo n.º 4
0
 private void btnVeTrangDau_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
 {
     this.Close();
     frmParent.Show();
 }
Ejemplo n.º 5
0
 private void btnHome_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
 {
     this.Close();
     myParent.Show();
 }