示例#1
0
        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;
        }
示例#2
0
        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;
        }