コード例 #1
0
        /// <summary>
        /// Xử lí các sự kiện click thao tác usecase
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnThemCD_Click(object sender, EventArgs e)
        {
            panelTrangChu.Visible = false;
            panel.Visible         = true;
            this.panel.Controls.Clear();
            ThemChuyenDe frm = new ThemChuyenDe();

            frm.TopLevel        = false;
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.AutoScroll      = true;
            this.panel.Controls.Add(frm);
            frm.Show();
        }
コード例 #2
0
        /// <summary>
        /// Xử lí các sự kiện click thao tác usecase
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_ThemCD_Click(object sender, EventArgs e)
        {
            btn_ThemCD.Enabled                 = false;
            btnXoaCD.Enabled                   = false;
            btnSuaCD.Enabled                   = false;
            btnMoCD.Enabled                    = false;
            btnVoHieuHoaCD.Enabled             = false;
            btnCapNhatCD.Enabled               = false;
            btnCapNhatGiaoVienPhuTrach.Enabled = false;
            btnCapNhatThongTinLop.Enabled      = false;


            panelTrangChu.Visible = false;
            panel.Visible         = true;
            this.panel.Controls.Clear();
            ThemChuyenDe frm = new ThemChuyenDe();

            frm.TopLevel        = false;
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.AutoScroll      = true;
            this.panel.Controls.Add(frm);
            frm.Show();
        }