Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }