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; } }
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(); } }
private void btnHome_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e) { Close(); frmParent.Show(); frmParent.Cursor = Cursors.Default; }
private void btnVeTrangDau_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e) { this.Close(); frmParent.Show(); }
private void btnHome_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e) { this.Close(); myParent.Show(); }