public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.ProtectionPart serial_ProtectionPart = serial_Class as FpmlSerializedCSharp.ProtectionPart; this.payRecieve_ = serial_ProtectionPart.PayRecieve_.ValueStr; FpmlSerializedCSharp.ReferenceInformationList serial_referenceInformationList = serial_ProtectionPart.ReferenceInformationList_; string referenceInformationListtype = serial_referenceInformationList.Excel_type_.ValueStr; this.referenceInformationListViewModel_ = ReferenceInformationListViewModel.CreateReferenceInformationList(referenceInformationListtype); this.referenceInformationListViewModel_.setFromSerial(serial_referenceInformationList); FpmlSerializedCSharp.ProtectionTerms serial_protectionTerms = serial_ProtectionPart.ProtectionTerms_; string protectionTermstype = serial_protectionTerms.Excel_type_.ValueStr; this.protectionTermsViewModel_ = ProtectionTermsViewModel.CreateProtectionTerms(protectionTermstype); this.protectionTermsViewModel_.setFromSerial(serial_protectionTerms); }