public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.UnderylingResult serial_UnderylingResult = serial_Class as FpmlSerializedCSharp.UnderylingResult;
     FpmlSerializedCSharp.HullWhiteGreekInfoResult serial_HullWhiteGreekInfoResult = serial_UnderylingResult.HullWhiteGreekInfoResult_;
 
     List<FpmlSerializedCSharp.HullWhiteGreekResult> serial_hullWhiteGreekResult = serial_HullWhiteGreekInfoResult.HullWhiteGreekResult_;
     this.hullWhiteGreekResultViewModel_ = new ObservableCollection<HullWhiteGreekResultViewModel>();
     foreach (var item in serial_hullWhiteGreekResult)
     {
         HullWhiteGreekResultViewModel viewModel = new HullWhiteGreekResultViewModel();
         viewModel.setFromSerial(item);
         this.hullWhiteGreekResultViewModel_.Add(viewModel);
     }
     
     this.view_ = new HullWhiteGreekInfoResultView();
     this.view_.DataContext = this;
 }
예제 #2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.UnderylingResult         serial_UnderylingResult         = serial_Class as FpmlSerializedCSharp.UnderylingResult;
            FpmlSerializedCSharp.HullWhiteGreekInfoResult serial_HullWhiteGreekInfoResult = serial_UnderylingResult.HullWhiteGreekInfoResult_;

            List <FpmlSerializedCSharp.HullWhiteGreekResult> serial_hullWhiteGreekResult = serial_HullWhiteGreekInfoResult.HullWhiteGreekResult_;

            this.hullWhiteGreekResultViewModel_ = new ObservableCollection <HullWhiteGreekResultViewModel>();
            foreach (var item in serial_hullWhiteGreekResult)
            {
                HullWhiteGreekResultViewModel viewModel = new HullWhiteGreekResultViewModel();
                viewModel.setFromSerial(item);
                this.hullWhiteGreekResultViewModel_.Add(viewModel);
            }

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