protected override void OnXapFormControl_ModelFilled(object sender, EventArgs e) { if (this.GetViewModel() != null) { EmsStomatologyRisViewModel tmpModel = this.GetViewModel() as EmsStomatologyRisViewModel; //this.detailButton.Visible = tmpModel.isSet(); //if (!this.detailButton.Visible) //{ // LogicEx.GetInstance().adjustHeight(this.GetXapFormControl(), "card", this.adjustHeightIds, -31); // this.GetXapFormControl().Invalidate(); //} string def2 = (this.GetViewModel().GetEmsUIDTO() as EmsUIDTO).Emsapobs.Def2; loadToothPicture(def2, this.toothLabel1); string def4 = (this.GetViewModel().GetEmsUIDTO() as EmsUIDTO).Emsapobs.Def4; loadToothPicture(def4, this.toothLabel2); string def6 = (this.GetViewModel().GetEmsUIDTO() as EmsUIDTO).Emsapobs.Def6; loadToothPicture(def6, this.toothLabel3); string def8 = (this.GetViewModel().GetEmsUIDTO() as EmsUIDTO).Emsapobs.Def8; loadToothPicture(def8, this.toothLabel4); string def10 = (this.GetViewModel().GetEmsUIDTO() as EmsUIDTO).Emsapobs.Def10; loadToothPicture(def10, this.toothLabel5); string def12 = (this.GetViewModel().GetEmsUIDTO() as EmsUIDTO).Emsapobs.Def12; loadToothPicture(def12, this.toothLabel6); string def14 = (this.GetViewModel().GetEmsUIDTO() as EmsUIDTO).Emsapobs.Def14; loadToothPicture(def14, this.toothLabel7); string def16 = (this.GetViewModel().GetEmsUIDTO() as EmsUIDTO).Emsapobs.Def16; loadToothPicture(def16, this.toothLabel8); heightRender.ValueText = (this.GetViewModel().GetEmsUIDTO() as EmsUIDTO).Emsapobs.Def17; weightRender.ValueText = (this.GetViewModel().GetEmsUIDTO() as EmsUIDTO).Emsapobs.Def18; } }
protected override void OnXapFormControl_ModelFilled(object sender, EventArgs e) { if (this.GetViewModel() != null) { EmsStomatologyRisViewModel tmpModel = this.GetViewModel() as EmsStomatologyRisViewModel; //this.detailButton.Visible = tmpModel.isSet(); //if (!this.detailButton.Visible) //{ // LogicEx.GetInstance().adjustHeight(this.GetXapFormControl(), "card", this.adjustHeightIds, -31); // this.GetXapFormControl().Invalidate(); //} string def2 = (this.GetViewModel().GetEmsUIDTO() as EmsUIDTO).Emsapobs.Def2; loadToothPicture(def2, this.toothLabel1); } }