public static UnderylingResultViewModel CreateUnderylingResult(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.UnderylingResult serial_UnderylingResult = serial_Class as FpmlSerializedCSharp.UnderylingResult; string typeStr = serial_UnderylingResult.Type_.ValueStr; return(UnderylingResultViewModel.CreateUnderylingResult(typeStr)); }
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) { string type = item.Excel_type_.ValueStr; HullWhiteGreekResultViewModel viewModel = HullWhiteGreekResultViewModel.CreateHullWhiteGreekResult(type); viewModel.setFromSerial(item); this.hullWhiteGreekResultViewModel_.Add(viewModel); } }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.UnderylingResult serial_UnderylingResult = serial_Class as FpmlSerializedCSharp.UnderylingResult; FpmlSerializedCSharp.GbmGreekInfoResult serial_GbmGreekInfoResult = serial_UnderylingResult.GbmGreekInfoResult_; List <FpmlSerializedCSharp.GbmGreekResult> serial_gbmGreekResult = serial_GbmGreekInfoResult.GbmGreekResult_; this.gbmGreekResultViewModel_ = new ObservableCollection <GbmGreekResultViewModel>(); foreach (var item in serial_gbmGreekResult) { GbmGreekResultViewModel viewModel = new GbmGreekResultViewModel(); viewModel.setFromSerial(item); this.gbmGreekResultViewModel_.Add(viewModel); } this.view_ = new GbmGreekInfoResultView(); this.view_.DataContext = this; }