Exemplo n.º 1
0
        private void themSachToolStripButton_Click(object sender, EventArgs e)
        {
            //QuanLyLoaiSach frmQL = new QuanLyLoaiSach();
            //frmQL.TopLevel = false;
            //frmQL.FormBorderStyle = FormBorderStyle.None;
            //frmQL.Dock = DockStyle.Fill;
            //panel1.Controls.Add(frmQL);
            //frmQL.Top = panel1.Top;
            //frmQL.Left = (panel1.Right - panel1.Left) / 2;
            //frmQL.Show();

            //QuanLyLoaiSach frmQLS = new QuanLyLoaiSach();
            //frmQLS.ShowDialog();

            //    TimKiemSach frmTimKiem = new TimKiemSach();
            //  frmTimKiem.ShowDialog();
            if (frmDangNhap.kiemTraDangNhap == true)
            {
                //frmQuanLySach frm = new frmQuanLySach();
                frmQuanLySanPham frm = new frmQuanLySanPham();
                frm.Show();
            }
            else
            {
                frmDangNhap frm = new frmDangNhap();
                frm.ShowDialog();
            }
        }
Exemplo n.º 2
0
 private void Main2_Load(object sender, EventArgs e)
 {
     // kiem tra dang nhap
     if (frmDangNhap.kiemTraDangNhap == false)
     {
         frmDangNhap frm = new frmDangNhap();
         frm.ShowDialog();
     }
 }
Exemplo n.º 3
0
 private void xoaSachToolStripButton_Click(object sender, EventArgs e)
 {
     if (frmDangNhap.kiemTraDangNhap == true)
     {
         frmQuanLyKhachHang frm = new frmQuanLyKhachHang();
         frm.Show();
     }
     else
     {
         frmDangNhap frm = new frmDangNhap();
         frm.ShowDialog();
     }
 }
Exemplo n.º 4
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();
            }
        }
Exemplo n.º 5
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();
     }
 }