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;
        }
        public static KiEventInfoViewModel CreateKiEventInfo(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.KiEventInfo serial_KiEventInfo = serial_Class as FpmlSerializedCSharp.KiEventInfo;
            string typeStr = serial_KiEventInfo.Type_.ValueStr;

            return(KiEventInfoViewModel.CreateKiEventInfo(typeStr));
        }
 public void selectKiEventInfoInfo(string typeStr)
 {
     this.kiEventInfoViewModel_ = KiEventInfoViewModel.CreateKiEventInfo(typeStr);
     this.view_.DataContext     = this;
 }