Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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);
        }