예제 #1
0
파일: Server.cs 프로젝트: windygu/School
        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.State = new State.Server(null).Convert(dto.State) as StateComp.Data;
        }
예제 #2
0
파일: Server.cs 프로젝트: windygu/School
        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,
                State = new State.Server(null).Convert(dt.State) as StateComp.Data,
            });
        }
예제 #3
0
 protected override void AssignFormControls()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     this.txtName.Text          = dto.Name;
     this.cboState.SelectedItem = (this.FormDto as Fac.FormDto).StateList.FindLast((p) => { return(p.Id == dto.State.Id); });
 }
예제 #4
0
 protected override void AssignDto()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     dto.Name  = this.txtName.Text;
     dto.State = this.cboState.SelectedItem as Facade.State.Dto;
 }