public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ProtectionTerms serial_protect = serial_Class as FpmlSerializedCSharp.ProtectionTerms;

            CreditEventUnderInfoViewModel creditEventsVM = new CreditEventUnderInfoViewModel();

            creditEventsVM.setFromSerial(serial_protect.CreditEvents_);

            ObligationsViewModel obliVM = new ObligationsViewModel();

            obliVM.setFromSerial(serial_protect.Obligations_);

            this.view_             = new ProtectionTermView();
            this.view_.DataContext = this;
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ProtectionTerms serial_protect = serial_Class as FpmlSerializedCSharp.ProtectionTerms;

            CreditEventUnderInfoViewModel creditEventsVM = new CreditEventUnderInfoViewModel();
            creditEventsVM.setFromSerial(serial_protect.CreditEvents_);

            ObligationsViewModel obliVM = new ObligationsViewModel();
            obliVM.setFromSerial(serial_protect.Obligations_);

            this.view_ = new ProtectionTermView();
            this.view_.DataContext = this;

        }