public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReferenceInformationList serial_ReferenceInformationList = serial_Class as FpmlSerializedCSharp.ReferenceInformationList;

            List <FpmlSerializedCSharp.ReferenceInformation> serial_referenceInformation = serial_ReferenceInformationList.ReferenceInformation_;

            this.referenceInformationViewModel_ = new ObservableCollection <ReferenceInformationViewModel>();
            foreach (var item in serial_referenceInformation)
            {
                string type = item.Excel_type_.ValueStr;
                ReferenceInformationViewModel viewModel = ReferenceInformationViewModel.CreateReferenceInformation(type);
                viewModel.setFromSerial(item);
                this.referenceInformationViewModel_.Add(viewModel);
            }
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReferenceInformationList serial_ReferenceInformationList = serial_Class as FpmlSerializedCSharp.ReferenceInformationList;

            List <FpmlSerializedCSharp.ReferenceInformation> serial_referenceInformation = serial_ReferenceInformationList.ReferenceInformation_;

            this.referenceInformationViewModel_ = new ObservableCollection <ReferenceInformationViewModel>();
            foreach (var item in serial_referenceInformation)
            {
                ReferenceInformationViewModel viewModel = new ReferenceInformationViewModel();
                viewModel.setFromSerial(item);
                this.referenceInformationViewModel_.Add(viewModel);
            }

            this.view_             = new ReferenceInformationListView();
            this.view_.DataContext = this;
        }
        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_;
            this.referenceInformationListViewModel_ = new ReferenceInformationListViewModel();
            this.referenceInformationListViewModel_.setFromSerial(serial_referenceInformationList);

            FpmlSerializedCSharp.ProtectionTerms serial_protectionTerms = serial_ProtectionPart.ProtectionTerms_;
            this.protectionTermsViewModel_ = new ProtectionTermsViewModel();
            this.protectionTermsViewModel_.setFromSerial(serial_protectionTerms);

            this.view_             = new ProtectionPartView();
            this.view_.DataContext = this;
        }
Exemplo n.º 4
0
        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);
        }