示例#1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventCalculation    serial_EventCalculation    = serial_Class as FpmlSerializedCSharp.EventCalculation;
            FpmlSerializedCSharp.SimpleRangeEventCal serial_SimpleRangeEventCal = serial_EventCalculation.SimpleRangeEventCal_;

            FpmlSerializedCSharp.Range1D serial_range1D = serial_SimpleRangeEventCal.Range1D_;
            string range1Dtype = serial_range1D.Excel_type_.ValueStr;

            this.range1DViewModel_ = Range1DViewModel.CreateRange1D(range1Dtype);
            this.range1DViewModel_.setFromSerial(serial_range1D);

            FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_SimpleRangeEventCal.ReferenceCalculationInfo_;
            string referenceCalculationInfotype = serial_referenceCalculationInfo.Excel_type_.ValueStr;

            this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype);
            this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo);

            FpmlSerializedCSharp.DateInformation serial_dateInformation = serial_SimpleRangeEventCal.DateInformation_;
            string dateInformationtype = serial_dateInformation.Excel_type_.ValueStr;

            this.dateInformationViewModel_ = DateInformationViewModel.CreateDateInformation(dateInformationtype);
            this.dateInformationViewModel_.setFromSerial(serial_dateInformation);

            FpmlSerializedCSharp.JointSimpleCalculation serial_jointSimpleCalculation = serial_SimpleRangeEventCal.JointSimpleCalculation_;
            string jointSimpleCalculationtype = serial_jointSimpleCalculation.Excel_type_.ValueStr;

            this.jointSimpleCalculationViewModel_ = JointSimpleCalculationViewModel.CreateJointSimpleCalculation(jointSimpleCalculationtype);
            this.jointSimpleCalculationViewModel_.setFromSerial(serial_jointSimpleCalculation);
        }
示例#2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventCalculationInfo serial_EventCalculationInfo = serial_Class as FpmlSerializedCSharp.EventCalculationInfo;

            FpmlSerializedCSharp.PreConditionEvent serial_preConditionEvent = serial_EventCalculationInfo.PreConditionEvent_;
            string preConditionEventtype = serial_preConditionEvent.Excel_type_.ValueStr;

            this.preConditionEventViewModel_ = PreConditionEventViewModel.CreatePreConditionEvent(preConditionEventtype);
            this.preConditionEventViewModel_.setFromSerial(serial_preConditionEvent);

            List <FpmlSerializedCSharp.EventCalculation> serial_eventCalculation = serial_EventCalculationInfo.EventCalculation_;

            this.eventCalculationViewModel_ = new ObservableCollection <EventCalculationViewModel>();
            foreach (var item in serial_eventCalculation)
            {
                string type = item.Excel_type_.ValueStr;
                EventCalculationViewModel viewModel = EventCalculationViewModel.CreateEventCalculation(type);
                viewModel.setFromSerial(item);
                this.eventCalculationViewModel_.Add(viewModel);
            }

            FpmlSerializedCSharp.JointSimpleCalculation serial_jointSimpleCalculation = serial_EventCalculationInfo.JointSimpleCalculation_;
            string jointSimpleCalculationtype = serial_jointSimpleCalculation.Excel_type_.ValueStr;

            this.jointSimpleCalculationViewModel_ = JointSimpleCalculationViewModel.CreateJointSimpleCalculation(jointSimpleCalculationtype);
            this.jointSimpleCalculationViewModel_.setFromSerial(serial_jointSimpleCalculation);

            this.pastEventOcc_ = serial_EventCalculationInfo.PastEventOcc_.ValueStr;

            FpmlSerializedCSharp.RefVariable_eventOcc serial_refVariable_eventOcc = serial_EventCalculationInfo.RefVariable_eventOcc_;
            string refVariable_eventOcctype = serial_refVariable_eventOcc.Excel_type_.ValueStr;

            this.refVariable_eventOccViewModel_ = RefVariable_eventOccViewModel.CreateRefVariable_eventOcc(refVariable_eventOcctype);
            this.refVariable_eventOccViewModel_.setFromSerial(serial_refVariable_eventOcc);
        }
示例#3
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventCalculation    serial_EventCalculation    = serial_Class as FpmlSerializedCSharp.EventCalculation;
            FpmlSerializedCSharp.DualBarrierEventCal serial_DualBarrierEventCal = serial_EventCalculation.DualBarrierEventCal_;

            List <FpmlSerializedCSharp.DateInformation> serial_dateInformation = serial_DualBarrierEventCal.DateInformation_;

            this.dateInformationViewModel_ = new ObservableCollection <DateInformationViewModel>();
            foreach (var item in serial_dateInformation)
            {
                string type = item.Excel_type_.ValueStr;
                DateInformationViewModel viewModel = DateInformationViewModel.CreateDateInformation(type);
                viewModel.setFromSerial(item);
                this.dateInformationViewModel_.Add(viewModel);
            }

            this.upperTriggerViewModel_ = new ObservableCollection <UpperTriggerViewModel>();
            foreach (var item in serial_DualBarrierEventCal.UpperTrigger_)
            {
                this.value_.Add(item.ValueStr);
            }

            this.lowerTriggerViewModel_ = new ObservableCollection <LowerTriggerViewModel>();
            foreach (var item in serial_DualBarrierEventCal.LowerTrigger_)
            {
                this.value_.Add(item.ValueStr);
            }

            List <FpmlSerializedCSharp.ReferenceCalculationInfo> serial_referenceCalculationInfo = serial_DualBarrierEventCal.ReferenceCalculationInfo_;

            this.referenceCalculationInfoViewModel_ = new ObservableCollection <ReferenceCalculationInfoViewModel>();
            foreach (var item in serial_referenceCalculationInfo)
            {
                string type = item.Excel_type_.ValueStr;
                ReferenceCalculationInfoViewModel viewModel = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(type);
                viewModel.setFromSerial(item);
                this.referenceCalculationInfoViewModel_.Add(viewModel);
            }

            FpmlSerializedCSharp.JointSimpleCalculation serial_jointSimpleCalculation = serial_DualBarrierEventCal.JointSimpleCalculation_;
            string jointSimpleCalculationtype = serial_jointSimpleCalculation.Excel_type_.ValueStr;

            this.jointSimpleCalculationViewModel_ = JointSimpleCalculationViewModel.CreateJointSimpleCalculation(jointSimpleCalculationtype);
            this.jointSimpleCalculationViewModel_.setFromSerial(serial_jointSimpleCalculation);
        }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.EventCalculation serial_EventCalculation = serial_Class as FpmlSerializedCSharp.EventCalculation;
     FpmlSerializedCSharp.DualBarrierEventCal serial_DualBarrierEventCal = serial_EventCalculation.DualBarrierEventCal_;
 
     List<FpmlSerializedCSharp.DateInformation> serial_dateInformation = serial_DualBarrierEventCal.DateInformation_;
     this.dateInformationViewModel_ = new ObservableCollection<DateInformationViewModel>();
     foreach (var item in serial_dateInformation)
     {
         string type = item.Excel_type_.ValueStr;
         DateInformationViewModel viewModel = DateInformationViewModel.CreateDateInformation(type);
         viewModel.setFromSerial(item);
         this.dateInformationViewModel_.Add(viewModel);
     }
     
     this.upperTriggerViewModel_ = new ObservableCollection<UpperTriggerViewModel>();
     foreach (var item in serial_DualBarrierEventCal.UpperTrigger_)
     {
         this.value_.Add(item.ValueStr);
     }
     
     this.lowerTriggerViewModel_ = new ObservableCollection<LowerTriggerViewModel>();
     foreach (var item in serial_DualBarrierEventCal.LowerTrigger_)
     {
         this.value_.Add(item.ValueStr);
     }
     
     List<FpmlSerializedCSharp.ReferenceCalculationInfo> serial_referenceCalculationInfo = serial_DualBarrierEventCal.ReferenceCalculationInfo_;
     this.referenceCalculationInfoViewModel_ = new ObservableCollection<ReferenceCalculationInfoViewModel>();
     foreach (var item in serial_referenceCalculationInfo)
     {
         string type = item.Excel_type_.ValueStr;
         ReferenceCalculationInfoViewModel viewModel = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(type);
         viewModel.setFromSerial(item);
         this.referenceCalculationInfoViewModel_.Add(viewModel);
     }
     
     FpmlSerializedCSharp.JointSimpleCalculation serial_jointSimpleCalculation = serial_DualBarrierEventCal.JointSimpleCalculation_;
     string jointSimpleCalculationtype = serial_jointSimpleCalculation.Excel_type_.ValueStr;
     this.jointSimpleCalculationViewModel_ = JointSimpleCalculationViewModel.CreateJointSimpleCalculation(jointSimpleCalculationtype);
     this.jointSimpleCalculationViewModel_.setFromSerial(serial_jointSimpleCalculation);
     
 }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.EventCalculation serial_EventCalculation = serial_Class as FpmlSerializedCSharp.EventCalculation;
     FpmlSerializedCSharp.SimpleRangeEventCal serial_SimpleRangeEventCal = serial_EventCalculation.SimpleRangeEventCal_;
 
     FpmlSerializedCSharp.Range1D serial_range1D = serial_SimpleRangeEventCal.Range1D_;
     string range1Dtype = serial_range1D.Excel_type_.ValueStr;
     this.range1DViewModel_ = Range1DViewModel.CreateRange1D(range1Dtype);
     this.range1DViewModel_.setFromSerial(serial_range1D);
     
     FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_SimpleRangeEventCal.ReferenceCalculationInfo_;
     string referenceCalculationInfotype = serial_referenceCalculationInfo.Excel_type_.ValueStr;
     this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype);
     this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo);
     
     FpmlSerializedCSharp.DateInformation serial_dateInformation = serial_SimpleRangeEventCal.DateInformation_;
     string dateInformationtype = serial_dateInformation.Excel_type_.ValueStr;
     this.dateInformationViewModel_ = DateInformationViewModel.CreateDateInformation(dateInformationtype);
     this.dateInformationViewModel_.setFromSerial(serial_dateInformation);
     
     FpmlSerializedCSharp.JointSimpleCalculation serial_jointSimpleCalculation = serial_SimpleRangeEventCal.JointSimpleCalculation_;
     string jointSimpleCalculationtype = serial_jointSimpleCalculation.Excel_type_.ValueStr;
     this.jointSimpleCalculationViewModel_ = JointSimpleCalculationViewModel.CreateJointSimpleCalculation(jointSimpleCalculationtype);
     this.jointSimpleCalculationViewModel_.setFromSerial(serial_jointSimpleCalculation);
     
 }
 public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.EventCalculationInfo serial_EventCalculationInfo = serial_Class as FpmlSerializedCSharp.EventCalculationInfo;
 
     FpmlSerializedCSharp.PreConditionEvent serial_preConditionEvent = serial_EventCalculationInfo.PreConditionEvent_;
     string preConditionEventtype = serial_preConditionEvent.Excel_type_.ValueStr;
     this.preConditionEventViewModel_ = PreConditionEventViewModel.CreatePreConditionEvent(preConditionEventtype);
     this.preConditionEventViewModel_.setFromSerial(serial_preConditionEvent);
     
     List<FpmlSerializedCSharp.EventCalculation> serial_eventCalculation = serial_EventCalculationInfo.EventCalculation_;
     this.eventCalculationViewModel_ = new ObservableCollection<EventCalculationViewModel>();
     foreach (var item in serial_eventCalculation)
     {
         string type = item.Excel_type_.ValueStr;
         EventCalculationViewModel viewModel = EventCalculationViewModel.CreateEventCalculation(type);
         viewModel.setFromSerial(item);
         this.eventCalculationViewModel_.Add(viewModel);
     }
     
     FpmlSerializedCSharp.JointSimpleCalculation serial_jointSimpleCalculation = serial_EventCalculationInfo.JointSimpleCalculation_;
     string jointSimpleCalculationtype = serial_jointSimpleCalculation.Excel_type_.ValueStr;
     this.jointSimpleCalculationViewModel_ = JointSimpleCalculationViewModel.CreateJointSimpleCalculation(jointSimpleCalculationtype);
     this.jointSimpleCalculationViewModel_.setFromSerial(serial_jointSimpleCalculation);
     
     this.pastEventOcc_ = serial_EventCalculationInfo.PastEventOcc_.ValueStr;
     
     FpmlSerializedCSharp.RefVariable_eventOcc serial_refVariable_eventOcc = serial_EventCalculationInfo.RefVariable_eventOcc_;
     string refVariable_eventOcctype = serial_refVariable_eventOcc.Excel_type_.ValueStr;
     this.refVariable_eventOccViewModel_ = RefVariable_eventOccViewModel.CreateRefVariable_eventOcc(refVariable_eventOcctype);
     this.refVariable_eventOccViewModel_.setFromSerial(serial_refVariable_eventOcc);
     
 }