public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PayoffInfoAnalytic serial_PayoffInfoAnalytic = serial_Class as FpmlSerializedCSharp.PayoffInfoAnalytic;
            FpmlSerializedCSharp.StandardPayoff_A   serial_StandardPayoff_A   = serial_PayoffInfoAnalytic.StandardPayoff_A_;

            FpmlSerializedCSharp.EventTriggerList_A serial_eventTriggerList_A = serial_StandardPayoff_A.EventTriggerList_A_;
            string eventTriggerList_Atype = serial_eventTriggerList_A.Excel_type_.ValueStr;

            this.eventTriggerList_AViewModel_ = EventTriggerList_AViewModel.CreateEventTriggerList_A(eventTriggerList_Atype);
            this.eventTriggerList_AViewModel_.setFromSerial(serial_eventTriggerList_A);
        }
Example #2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventTriggerList_A serial_EventTriggerList_A = serial_Class as FpmlSerializedCSharp.EventTriggerList_A;

            List <FpmlSerializedCSharp.EventTrigger_A> serial_eventTrigger_A = serial_EventTriggerList_A.EventTrigger_A_;

            this.eventTrigger_AViewModel_ = new ObservableCollection <EventTrigger_AViewModel>();
            foreach (var item in serial_eventTrigger_A)
            {
                string type = item.Excel_type_.ValueStr;
                EventTrigger_AViewModel viewModel = EventTrigger_AViewModel.CreateEventTrigger_A(type);
                viewModel.setFromSerial(item);
                this.eventTrigger_AViewModel_.Add(viewModel);
            }
        }