public override void AssignData() { Dto dto = (base.FormDto as FormDto).Dto as Dto; Comp.Data data = base.ComponentData as Comp.Data; data.Name = dto.Name; data.IsPercentage = dto.IsPercentage; }
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, IsPercentage = dt.IsPercentage, IsActive = dt.IsActive, }); }
protected override void AssignFormControls() { Fac.Dto dto = base.FormDto.Dto as Fac.Dto; this.txtName.Text = dto.Name; this.rdlYes.Checked = dto.IsPercentage; }
protected override void AssignDto() { Fac.Dto dto = base.FormDto.Dto as Fac.Dto; dto.Name = this.txtName.Text; dto.IsPercentage = this.rdlYes.Checked == true ? true : false; }