public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PayoffInfo serial_PayoffInfo = serial_Class as FpmlSerializedCSharp.PayoffInfo;
            FpmlSerializedCSharp.StepDownKI serial_StepDownKI = serial_PayoffInfo.StepDownKI_;

            FpmlSerializedCSharp.RedemptionInfo serial_redemptionInfo = serial_StepDownKI.RedemptionInfo_;
            string redemptionInfotype = serial_redemptionInfo.Type_.ValueStr;

            this.redemptionInfoViewModel_ = RedemptionInfoViewModel.CreateRedemptionInfo(redemptionInfotype);
            this.redemptionInfoViewModel_.setFromSerial(serial_redemptionInfo);

            FpmlSerializedCSharp.KiEventInfo serial_kiEventInfo = serial_StepDownKI.KiEventInfo_;
            string kiEventInfotype = serial_kiEventInfo.Type_.ValueStr;

            this.kiEventInfoViewModel_ = KiEventInfoViewModel.CreateKiEventInfo(kiEventInfotype);
            this.kiEventInfoViewModel_.setFromSerial(serial_kiEventInfo);

            FpmlSerializedCSharp.NonKiEventInfo serial_nonKiEventInfo = serial_StepDownKI.NonKiEventInfo_;
            string nonKiEventInfotype = serial_nonKiEventInfo.Type_.ValueStr;

            this.nonKiEventInfoViewModel_ = NonKiEventInfoViewModel.CreateNonKiEventInfo(nonKiEventInfotype);
            this.nonKiEventInfoViewModel_.setFromSerial(serial_nonKiEventInfo);

            this.view_             = new StepDownKIView();
            this.view_.DataContext = this;
        }
Exemplo n.º 2
0
        public static RedemptionInfoViewModel CreateRedemptionInfo(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.RedemptionInfo serial_RedemptionInfo = serial_Class as FpmlSerializedCSharp.RedemptionInfo;
            string typeStr = serial_RedemptionInfo.Type_.ValueStr;

            return(RedemptionInfoViewModel.CreateRedemptionInfo(typeStr));
        }
 public void selectRedemptionInfoInfo(string typeStr)
 {
     this.redemptionInfoViewModel_ = RedemptionInfoViewModel.CreateRedemptionInfo(typeStr);
     this.view_.DataContext        = this;
 }