public InsertProductForm() { InitializeComponent(); product.FillComboBoxCategory(comboCategory); product.FillComboBoxBrand(comboBrand); }
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); }