コード例 #1
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReferenceCalculationInfo serial_ReferenceCalculationInfo = serial_Class as FpmlSerializedCSharp.ReferenceCalculationInfo;

            FpmlSerializedCSharp.FixingInformation serial_fixingInformation = serial_ReferenceCalculationInfo.FixingInformation_;
            string fixingInformationtype = serial_fixingInformation.Excel_type_.ValueStr;

            this.fixingInformationViewModel_ = FixingInformationViewModel.CreateFixingInformation(fixingInformationtype);
            this.fixingInformationViewModel_.setFromSerial(serial_fixingInformation);

            List <FpmlSerializedCSharp.ReferenceCalculation> serial_referenceCalculation = serial_ReferenceCalculationInfo.ReferenceCalculation_;

            this.referenceCalculationViewModel_ = new ObservableCollection <ReferenceCalculationViewModel>();
            foreach (var item in serial_referenceCalculation)
            {
                string type = item.Excel_type_.ValueStr;
                ReferenceCalculationViewModel viewModel = ReferenceCalculationViewModel.CreateReferenceCalculation(type);
                viewModel.setFromSerial(item);
                this.referenceCalculationViewModel_.Add(viewModel);
            }

            FpmlSerializedCSharp.OperatorND serial_operatorND = serial_ReferenceCalculationInfo.OperatorND_;
            string operatorNDtype = serial_operatorND.Excel_type_.ValueStr;

            this.operatorNDViewModel_ = OperatorNDViewModel.CreateOperatorND(operatorNDtype);
            this.operatorNDViewModel_.setFromSerial(serial_operatorND);

            FpmlSerializedCSharp.PostCalculation serial_postCalculation = serial_ReferenceCalculationInfo.PostCalculation_;
            string postCalculationtype = serial_postCalculation.Excel_type_.ValueStr;

            this.postCalculationViewModel_ = PostCalculationViewModel.CreatePostCalculation(postCalculationtype);
            this.postCalculationViewModel_.setFromSerial(serial_postCalculation);

            FpmlSerializedCSharp.RefVariable_referenceValue serial_refVariable_referenceValue = serial_ReferenceCalculationInfo.RefVariable_referenceValue_;
            string refVariable_referenceValuetype = serial_refVariable_referenceValue.Excel_type_.ValueStr;

            this.refVariable_referenceValueViewModel_ = RefVariable_referenceValueViewModel.CreateRefVariable_referenceValue(refVariable_referenceValuetype);
            this.refVariable_referenceValueViewModel_.setFromSerial(serial_refVariable_referenceValue);
        }
 public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.ReferenceCalculationInfo serial_ReferenceCalculationInfo = serial_Class as FpmlSerializedCSharp.ReferenceCalculationInfo;
 
     FpmlSerializedCSharp.FixingInformation serial_fixingInformation = serial_ReferenceCalculationInfo.FixingInformation_;
     string fixingInformationtype = serial_fixingInformation.Excel_type_.ValueStr;
     this.fixingInformationViewModel_ = FixingInformationViewModel.CreateFixingInformation(fixingInformationtype);
     this.fixingInformationViewModel_.setFromSerial(serial_fixingInformation);
     
     List<FpmlSerializedCSharp.ReferenceCalculation> serial_referenceCalculation = serial_ReferenceCalculationInfo.ReferenceCalculation_;
     this.referenceCalculationViewModel_ = new ObservableCollection<ReferenceCalculationViewModel>();
     foreach (var item in serial_referenceCalculation)
     {
         string type = item.Excel_type_.ValueStr;
         ReferenceCalculationViewModel viewModel = ReferenceCalculationViewModel.CreateReferenceCalculation(type);
         viewModel.setFromSerial(item);
         this.referenceCalculationViewModel_.Add(viewModel);
     }
     
     FpmlSerializedCSharp.OperatorND serial_operatorND = serial_ReferenceCalculationInfo.OperatorND_;
     string operatorNDtype = serial_operatorND.Excel_type_.ValueStr;
     this.operatorNDViewModel_ = OperatorNDViewModel.CreateOperatorND(operatorNDtype);
     this.operatorNDViewModel_.setFromSerial(serial_operatorND);
     
     FpmlSerializedCSharp.PostCalculation serial_postCalculation = serial_ReferenceCalculationInfo.PostCalculation_;
     string postCalculationtype = serial_postCalculation.Excel_type_.ValueStr;
     this.postCalculationViewModel_ = PostCalculationViewModel.CreatePostCalculation(postCalculationtype);
     this.postCalculationViewModel_.setFromSerial(serial_postCalculation);
     
     FpmlSerializedCSharp.RefVariable_referenceValue serial_refVariable_referenceValue = serial_ReferenceCalculationInfo.RefVariable_referenceValue_;
     string refVariable_referenceValuetype = serial_refVariable_referenceValue.Excel_type_.ValueStr;
     this.refVariable_referenceValueViewModel_ = RefVariable_referenceValueViewModel.CreateRefVariable_referenceValue(refVariable_referenceValuetype);
     this.refVariable_referenceValueViewModel_.setFromSerial(serial_refVariable_referenceValue);
     
 }