Exemple #1
0
        public void Edit(ThemSP ThemSP)
        {
            pnlThemSanPham.Size = new Size(1200, 590);
            pnlThemSanPham.Controls.Clear();
            pnlThemSanPham.Controls.Add(ThemSP);
            ThemSP.btnDelete.Visible = true;
            ThemSP.btnUpdate.Visible = true;

            btnTrangChu.BackColor    = Color.White;
            btnThemSanPham.BackColor = Color.Teal;
        }
Exemple #2
0
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            var    btn    = sender as btnEditLaptop;
            ThemSP ThemSP = new ThemSP();

            ThemSP.btnDelete.Visible = true;
            ThemSP.SetLaptop(btn.laptop);
            ThemSP.btnAdd.Visible    = false;
            ThemSP.btnUpdate.Visible = true;

            this.frm.Edit(ThemSP);
        }
Exemple #3
0
        private void btnThemSanPham_Click(object sender, EventArgs e)
        {
            btnTrangChu.BackColor    = Color.White;
            btnThemSanPham.BackColor = Color.Teal;
            btnHistory.BackColor     = Color.White;
            btnStatus.BackColor      = Color.White;


            ThemSP ThemSP = new ThemSP();

            pnlThemSanPham.Size = new Size(1200, 590);
            pnlThemSanPham.Controls.Clear();
            pnlThemSanPham.Controls.Add(ThemSP);
            ThemSP.btnDelete.Visible = false;
            ThemSP.btnUpdate.Visible = false;
        }