Example #1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReturnCalculation serial_ReturnCalculation = serial_Class as FpmlSerializedCSharp.ReturnCalculation;
            FpmlSerializedCSharp.VanillaReturnCal  serial_VanillaReturnCal  = serial_ReturnCalculation.VanillaReturnCal_;

            this.gearing_ = serial_VanillaReturnCal.Gearing_.ValueStr;

            this.spread_ = serial_VanillaReturnCal.Spread_.ValueStr;

            FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_VanillaReturnCal.ReferenceCalculationInfo_;
            string referenceCalculationInfotype = serial_referenceCalculationInfo.Excel_type_.ValueStr;

            this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype);
            this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo);
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReturnCalculation serial_ReturnCalculation = serial_Class as FpmlSerializedCSharp.ReturnCalculation;
            FpmlSerializedCSharp.VanillaReturnCal  serial_VanillaReturnCal  = serial_ReturnCalculation.VanillaReturnCal_;

            this.gearing_ = serial_VanillaReturnCal.Gearing_.ValueStr;

            this.spread_ = serial_VanillaReturnCal.Spread_.ValueStr;

            FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_VanillaReturnCal.ReferenceCalculationInfo_;
            this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo);

            //this.view_ = new VanillaReturnCalView();
            this.view_.DataContext = this;
        }