public TabPageInsertProductView() { ControlProduct controlProduct = new ControlProduct(); this.Text = "Insert"; controlProduct.TxtId.Enabled = false; controlProduct.Btn.Name = "btnInsert"; controlProduct.Btn.Text = "Insert"; this.Controls.Add(controlProduct); }
public TabPageModifyProductView() { ControlProduct product = new ControlProduct(); this.Text = "Modify"; product.TxtId.Enabled = false; product.Btn.Name = "btnModify"; product.Btn.Text = "Modify"; this.Controls.Add(product); }
public TabPageDeleteProductView() { ControlProduct controlProduct = new ControlProduct(); this.Text = "Delete"; controlProduct.TxtId.Enabled = true; controlProduct.TxtName.Enabled = false; controlProduct.TxtPrice.Enabled = false; controlProduct.TxtQuantity.Enabled = false; controlProduct.Btn.Name = "btnDelete"; controlProduct.Btn.Text = "Delete"; this.Controls.Add(controlProduct); }