Ejemplo n.º 1
0
        public override void AssignData()
        {
            Dto dto = (base.FormDto as FormDto).Dto as Dto;

            Comp.Data data = base.ComponentData as Comp.Data;
            data.Id      = dto.Id;
            data.Name    = dto.Name;
            data.Country = new Country.Server(null).Convert(dto.Country) as CountryComp.Data;
        }
Ejemplo n.º 2
0
        public override BinAff.Core.Data Convert(BinAff.Facade.Library.Dto dto)
        {
            Dto dt = dto as Dto;

            return(new Comp.Data
            {
                Id = dt.Id,
                Name = dt.Name,
                Country = new Country.Server(null).Convert(dt.Country) as CountryComp.Data,
            });
        }
Ejemplo n.º 3
0
 protected override void AssignFormControls()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     this.txtName.Text            = dto.Name;
     this.cboCountry.SelectedItem = (this.FormDto as Fac.FormDto).CountryList.FindLast((p) => { return(p.Id == dto.Country.Id); });
 }
Ejemplo n.º 4
0
 protected override void AssignDto()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     dto.Name    = this.txtName.Text;
     dto.Country = this.cboCountry.SelectedItem as Facade.Country.Dto;
 }