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)
            {
                string type = item.Excel_type_.ValueStr;
                GbmGreekResultViewModel viewModel = GbmGreekResultViewModel.CreateGbmGreekResult(type);
                viewModel.setFromSerial(item);
                this.gbmGreekResultViewModel_.Add(viewModel);
            }
        }
Exemple #2
0
        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;
        }