public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.ReferenceObligation serial_ReferenceObligation = serial_Class as FpmlSerializedCSharp.ReferenceObligation;
 
     FpmlSerializedCSharp.Bond serial_bond = serial_ReferenceObligation.Bond_;
     this.bondViewModel_ = new BondViewModel();
     this.bondViewModel_.setFromSerial(serial_bond);
     
     this.view_ = new ReferenceObligationView();
     this.view_.DataContext = this;
 }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReferenceObligation serial_ReferenceObligation = serial_Class as FpmlSerializedCSharp.ReferenceObligation;

            FpmlSerializedCSharp.Bond serial_bond = serial_ReferenceObligation.Bond_;
            this.bondViewModel_ = new BondViewModel();
            this.bondViewModel_.setFromSerial(serial_bond);

            this.view_             = new ReferenceObligationView();
            this.view_.DataContext = this;
        }