Ejemplo n.º 1
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventTriggerList serial_EventTriggerList = serial_Class as FpmlSerializedCSharp.EventTriggerList;

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

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

            //this.view_ = new EventTriggerListView();
            this.view_.DataContext = this;
        }
Ejemplo n.º 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;
        }