public CompanyProxy(Svc.Company dto) : base() { if (dto != null) { this.Id = dto.Id; this.Name = dto.Name; this.lawFormValue = dto.lawFormValue; this._dto = dto; this.PropertyChanged += ProxyActivator.ReflectChangedProperty; } }
public GovernorProxy(Svc.Governor dto) : base() { if (dto == null) throw new InvalidOperationException("Governor dto"); this.Id = dto.Id; this.CompanyId = dto.CompanyId; this.Company = ProxyActivator.CreateProxy<Svc.Company, Company>(dto.Company); this.ShortName = dto.ShortName; this._dto = dto; this.PropertyChanged += ProxyActivator.ReflectChangedProperty; }
public WorkCalendarProxy(Svc.WorkCalendar dto) : base() { if (dto == null) throw new InvalidOperationException("WorkCalendar dto"); this.Id = dto.Id; this.Comment = dto.Comment; this.Date = dto.Date; this.IsWorkingDay = dto.IsWorkingDay; this._dto = dto; this.PropertyChanged += ProxyActivator.ReflectChangedProperty; }
public AssetValueProxy(Svc.AssetValue dto) : base() { if (dto == null) throw new InvalidOperationException("AssetValue dto"); this.Id = dto.Id; this.TakingDate = dto.TakingDate; this.Value = dto.Value; this.CashFlow = dto.CashFlow; this.InsuranceTypeValue = dto.InsuranceTypeValue; this.GovernorId = dto.GovernorId; this.Governor = ProxyActivator.CreateProxy<Svc.Governor, Governor>(dto.Governor); this._dto = dto; this.PropertyChanged += ProxyActivator.ReflectChangedProperty; }