private void ProductsManagement_Load(object sender, EventArgs e) { FormControls.ShowFields(false, txtProductId, txtName, txtPrice, txtStock, txtDiscount, cbBrand, cbColor, cbSize, rbClothing, rbFemale, rbFootwear, rbKids, rbMale, gb_Subtype, gb_Type, btnCancel, btnSave, label1, label2, label3, label4, label5, label6, label7, label8, label9, label11); FormControls.SetComboboxDefaultValue(cbBrand, cbColor, cbSize); FormControls.BindData(dgv_Product, "product"); }
private void CustomersManagement_Load(object sender, EventArgs e) { FormControls.ShowFields(false, txtName, txtSurname, txtAddress, txtPhoneNum, txtEmail, cBoxType, btnSave, btnCancel, label1, label2, label3, label4, label5, label6); FormControls.SetComboboxDefaultValue(cBoxType); FormControls.BindData(dgv_Customer, "customer"); }