public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReturnCalculation serial_ReturnCalculation = serial_Class as FpmlSerializedCSharp.ReturnCalculation;
            FpmlSerializedCSharp.StopLossReturnCal serial_StopLossReturnCal = serial_ReturnCalculation.StopLossReturnCal_;

            this.power_ = serial_StopLossReturnCal.Power_.ValueStr;

            this.lossTrigger_ = serial_StopLossReturnCal.LossTrigger_.ValueStr;

            this.maximumLoss_ = serial_StopLossReturnCal.MaximumLoss_.ValueStr;

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

            this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype);
            this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo);

            this.withNotional_ = serial_StopLossReturnCal.WithNotional_.ValueStr;

            this.isExpired_ = serial_StopLossReturnCal.IsExpired_.ValueStr;
        }
コード例 #2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReturnCalculation serial_ReturnCalculation = serial_Class as FpmlSerializedCSharp.ReturnCalculation;
            FpmlSerializedCSharp.StopLossReturnCal serial_StopLossReturnCal = serial_ReturnCalculation.StopLossReturnCal_;

            this.power_ = serial_StopLossReturnCal.Power_.ValueStr;

            this.lossTrigger_ = serial_StopLossReturnCal.LossTrigger_.ValueStr;

            this.maximumLoss_ = serial_StopLossReturnCal.MaximumLoss_.ValueStr;

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

            this.withNotional_ = serial_StopLossReturnCal.WithNotional_.ValueStr;

            this.isExpired_ = serial_StopLossReturnCal.IsExpired_.ValueStr;

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