void addFormDanhMuc()
        {
            frmDanhMuc frm = new frmDanhMuc();

            frm.TopLevel = false;
            tabKH_NV.Controls.Add(frm);
            frm.Show();
        }
Exemplo n.º 2
0
        private void label1_Click(object sender, EventArgs e)
        {
            if (!Check("frmDanhMuc"))
            {
                return;
            }
            frmDanhMuc frm = new frmDanhMuc();

            frm.MdiParent = this.MdiParent;
            closeall(frm.Name);
            frm.Show();
        }
Exemplo n.º 3
0
        private void btnDanhMuc_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            Button btn = sender as Button;

            changecolorButtonMenu(btn);
            frmDanhMuc frmDM = new frmDanhMuc();

            frmDM.TopLevel = false;
            panelMain.Controls.Add(frmDM);
            frmDM.Show();
        }
Exemplo n.º 4
0
        private void btnDanhMuc_Click(object sender, EventArgs e)
        {
            if (Check("frmDanhMuc"))
            {
                Form fr = new frmDanhMuc();
                fr.MdiParent = this;
                fr.Show();
            }

            pnlChucnang.Controls.Clear();

            for (int i = 0; i < listDanhMuc.Length - 1; i++)
            {
                Button btn = new Button();
                btn.Location = new Point(0, i * 35 + 2);
                btn.Text = listDanhMuc[i];
                btn.TextAlign = ContentAlignment.MiddleLeft;
                btn.Visible = true;
                btn.Size = new Size(135, 35);
                btn.FlatStyle = FlatStyle.Flat;
                btn.FlatAppearance.BorderSize = 0;
                btn.FlatAppearance.BorderColor = Color.White;

                btn.Image = new Bitmap(global::GUI.Properties.Resources.Danh_Muc__1_);
                btn.ImageAlign = ContentAlignment.MiddleLeft;
                btn.TextImageRelation = TextImageRelation.ImageBeforeText;
                btn.Click += new System.EventHandler(btn_click);

                pnlChucnang.Controls.Add(btn);
            }
        }
Exemplo n.º 5
0
        private void label1_Click(object sender, EventArgs e)
        {
            if (!Check("frmDanhMuc"))
            {
                return;
            }
            frmDanhMuc frm = new frmDanhMuc();

            frm.MdiParent = this.MdiParent;
            closeall(frm.Name);
            frm.Show();
        }