private void CreateControlDictionary()
        {
            string supplierString = typeof(Supplier).Name;

            validator.AddControlDictionary(supplierString, "Name", txtSupplierName);
            validator.AddControlDictionary(supplierString, "Address", txtSupplierAddress);
            validator.AddControlDictionary(supplierString, "PhoneNumber", txtSupplierPhoneNumber);
        }
 private void CreateControlDictionary()
 {
     validator.AddControlDictionary(typeof(ProductBrand).Name, "Name", txtName);
 }