public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PreEventCalculation serial_PreEventCalculation = serial_Class as FpmlSerializedCSharp.PreEventCalculation;

            List <FpmlSerializedCSharp.EventCalculationList> serial_eventCalculationList = serial_PreEventCalculation.EventCalculationList_;

            this.eventCalculationListViewModel_ = new ObservableCollection <EventCalculationListViewModel>();
            foreach (var item in serial_eventCalculationList)
            {
                string type = item.Excel_type_.ValueStr;
                EventCalculationListViewModel viewModel = EventCalculationListViewModel.CreateEventCalculationList(type);
                viewModel.setFromSerial(item);
                this.eventCalculationListViewModel_.Add(viewModel);
            }

            List <FpmlSerializedCSharp.JointEventCalculation> serial_jointEventCalculation = serial_PreEventCalculation.JointEventCalculation_;

            this.jointEventCalculationViewModel_ = new ObservableCollection <JointEventCalculationViewModel>();
            foreach (var item in serial_jointEventCalculation)
            {
                string type = item.Excel_type_.ValueStr;
                JointEventCalculationViewModel viewModel = JointEventCalculationViewModel.CreateJointEventCalculation(type);
                viewModel.setFromSerial(item);
                this.jointEventCalculationViewModel_.Add(viewModel);
            }
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.JointEventCalculation serial_JointEventCalculation = serial_Class as FpmlSerializedCSharp.JointEventCalculation;
            FpmlSerializedCSharp.OrEventCal            serial_OrEventCal            = serial_JointEventCalculation.OrEventCal_;

            FpmlSerializedCSharp.EventCalculationList serial_eventCalculationList = serial_OrEventCal.EventCalculationList_;
            string eventCalculationListtype = serial_eventCalculationList.Excel_type_.ValueStr;

            this.eventCalculationListViewModel_ = EventCalculationListViewModel.CreateEventCalculationList(eventCalculationListtype);
            this.eventCalculationListViewModel_.setFromSerial(serial_eventCalculationList);

            this.complement_ = serial_OrEventCal.Complement_.ValueStr;
        }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.JointEventCalculation serial_JointEventCalculation = serial_Class as FpmlSerializedCSharp.JointEventCalculation;
     FpmlSerializedCSharp.AtMostEventCal serial_AtMostEventCal = serial_JointEventCalculation.AtMostEventCal_;
 
     this.num_ = serial_AtMostEventCal.Num_.ValueStr;
     
     FpmlSerializedCSharp.EventCalculationList serial_eventCalculationList = serial_AtMostEventCal.EventCalculationList_;
     string eventCalculationListtype = serial_eventCalculationList.Excel_type_.ValueStr;
     this.eventCalculationListViewModel_ = EventCalculationListViewModel.CreateEventCalculationList(eventCalculationListtype);
     this.eventCalculationListViewModel_.setFromSerial(serial_eventCalculationList);
     
     this.complement_ = serial_AtMostEventCal.Complement_.ValueStr;
     
 }