Ejemplo n.º 1
0
        private void Main_Load(object sender, EventArgs e)
        {
            int temp  = label1.Right - label1.Left;
            int temp2 = label3.Right - label3.Left;

            label1.Left = Right / 2 - temp / 2;
            label3.Left = Right / 2 - temp2 / 2;

            // kiem tra dang nhap
            if (frmDangNhap.kiemTraDangNhap == false)
            {
                frmDangNhap frm = new frmDangNhap();
                frm.ShowDialog();
            }
        }
Ejemplo n.º 2
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     if (frmDangNhap.kiemTraDangNhap == true)
     {
         //frmQuanLySach frm = new frmQuanLySach();
         //MuonTraSach frmMuonTra = new MuonTraSach();
         //frmMuonTra.Show();
         frmQuanLyDonHang frm = new frmQuanLyDonHang();
         frm.Show();
     }
     else
     {
         frmDangNhap frm = new frmDangNhap();
         frm.ShowDialog();
     }
 }