Пример #1
0
        private void mQuanLyKho_Click(object sender, EventArgs e)
        {
            lblTieuDe.Text = "Quản lý kho";
            Cursor.Current = Cursors.WaitCursor;
            XuLyChuyenForm();
            FrmQuanLyKho m_FrmQuanLyKho = FrmQuanLyKho.Instance;

            f = m_FrmQuanLyKho;
            m_FrmQuanLyKho.MdiParent = this;
            m_FrmQuanLyKho.Dock      = DockStyle.Fill;
            m_FrmQuanLyKho.Show();

            Label lbl = new Label();

            lbl.Dock      = DockStyle.Left;
            lbl.Text      = "Lập báo cáo nhanh";
            lbl.ForeColor = Color.CadetBlue;
            lbl.TextAlign = ContentAlignment.MiddleLeft;
            lbl.Font      = new Font("SegoeUI", 11, FontStyle.Bold);
            panelBaoCao.Controls.Add(lbl);
            lbl.BringToFront();

            MaterialFlatButton btnTatCaNguyenLieu = new MaterialFlatButton();

            btnTatCaNguyenLieu.Dock   = DockStyle.Left;
            btnTatCaNguyenLieu.Text   = "Tất cả nguyên liệu";
            btnTatCaNguyenLieu.Name   = "TatCaNguyenLieu";
            btnTatCaNguyenLieu.Click += btn_Click;
            panelBaoCao.Controls.Add(btnTatCaNguyenLieu);
            btnTatCaNguyenLieu.BringToFront();
        }