Ejemplo n.º 1
0
        public InsertProductForm()
        {
            InitializeComponent();

            product.FillComboBoxCategory(comboCategory);
            product.FillComboBoxBrand(comboBrand);
        }
Ejemplo n.º 2
0
        public UpdateProductForm()
        {
            InitializeComponent();

            // Parameters
            string name        = "Name";
            string description = "DESCRIPTION";
            string fullName    = "FullProductName";
            string shortName   = "ShortProductName";

            // Populating ComboBox with information from database
            // it is easier for user to update products this way.
            product.FillComboBoxProduct(comboName, name);
            product.FillComboBoxProduct(comboDescription, description);
            product.FillComboBoxCategory(comboCategory);
            product.FillComboBoxBrand(comboBrand);
            product.FillComboBoxProduct(comboFullName, fullName);
            product.FillComboBoxProduct(comboShortName, shortName);
        }