public FrmEntryLabelNota(string header, Customer customer, JualProduk jual) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); this._pengaturanUmum = MainProgram.pengaturanUmum; this._labelAlamatKirim = new LabelAlamatKirim(); this._customer = customer; this._jual = jual; SetLabelNota(); }
public bool IsValid(LabelAlamatKirim obj, ref ValidationError validationError) { var validatorResults = _validator.Validate(obj); if (!validatorResults.IsValid) { foreach (var failure in validatorResults.Errors) { validationError.Message = failure.ErrorMessage; validationError.PropertyName = failure.PropertyName; return(false); } } return(true); }