Example #1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.RedemptionInfo       serial_RedemptionInfo       = serial_Class as FpmlSerializedCSharp.RedemptionInfo;
            FpmlSerializedCSharp.MonthlyAutoCallRedem serial_MonthlyAutoCallRedem = serial_RedemptionInfo.MonthlyAutoCallRedem_;

            List <FpmlSerializedCSharp.EventTrigger> serial_eventTrigger = serial_MonthlyAutoCallRedem.EventTrigger_;

            this.eventTriggerViewModel_ = new ObservableCollection <EventTriggerViewModel>();
            foreach (var item in serial_eventTrigger)
            {
                string type = item.Excel_type_.ValueStr;
                EventTriggerViewModel viewModel = EventTriggerViewModel.CreateEventTrigger(type);
                viewModel.setFromSerial(item);
                this.eventTriggerViewModel_.Add(viewModel);
            }
        }
Example #2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.RedemptionInfo       serial_RedemptionInfo       = serial_Class as FpmlSerializedCSharp.RedemptionInfo;
            FpmlSerializedCSharp.MonthlyAutoCallRedem serial_MonthlyAutoCallRedem = serial_RedemptionInfo.MonthlyAutoCallRedem_;

            List <FpmlSerializedCSharp.EventTrigger> serial_eventTrigger = serial_MonthlyAutoCallRedem.EventTrigger_;

            foreach (var item in serial_eventTrigger)
            {
                string type = item.Type_.ValueStr;
                EventTriggerViewModel viewModel = EventTriggerViewModel.CreateEventTrigger(type);
                viewModel.setFromSerial(serial_MonthlyAutoCallRedem);
                this.eventTriggerViewModel_.Add(viewModel);
            }

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