public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReferenceCurveList serial_ReferenceCurveList = serial_Class as FpmlSerializedCSharp.ReferenceCurveList;

            List <FpmlSerializedCSharp.ReferenceCurve> serial_referenceCurve = serial_ReferenceCurveList.ReferenceCurve_;

            this.referenceCurveViewModel_ = new ObservableCollection <ReferenceCurveViewModel>();
            foreach (var item in serial_referenceCurve)
            {
                string type = item.Excel_type_.ValueStr;
                ReferenceCurveViewModel viewModel = ReferenceCurveViewModel.CreateReferenceCurve(type);
                viewModel.setFromSerial(item);
                this.referenceCurveViewModel_.Add(viewModel);
            }
        }
Exemple #2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReferenceEntityInfo_para serial_ReferenceEntityInfo_para = serial_Class as FpmlSerializedCSharp.ReferenceEntityInfo_para;

            FpmlSerializedCSharp.ReferenceCurveList serial_referenceCurveList = serial_ReferenceEntityInfo_para.ReferenceCurveList_;
            string referenceCurveListtype = serial_referenceCurveList.Excel_type_.ValueStr;

            this.referenceCurveListViewModel_ = ReferenceCurveListViewModel.CreateReferenceCurveList(referenceCurveListtype);
            this.referenceCurveListViewModel_.setFromSerial(serial_referenceCurveList);

            FpmlSerializedCSharp.JointProbabilityTrait serial_jointProbabilityTrait = serial_ReferenceEntityInfo_para.JointProbabilityTrait_;
            string jointProbabilityTraittype = serial_jointProbabilityTrait.Excel_type_.ValueStr;

            this.jointProbabilityTraitViewModel_ = JointProbabilityTraitViewModel.CreateJointProbabilityTrait(jointProbabilityTraittype);
            this.jointProbabilityTraitViewModel_.setFromSerial(serial_jointProbabilityTrait);
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReferenceEntityInfo_para serial_ReferenceEntityInfo_para = serial_Class as FpmlSerializedCSharp.ReferenceEntityInfo_para;

            FpmlSerializedCSharp.ReferenceCurveList serial_referenceCurveList = serial_ReferenceEntityInfo_para.ReferenceCurveList_;
            this.referenceCurveListViewModel_ = new ReferenceCurveListViewModel();
            this.referenceCurveListViewModel_.setFromSerial(serial_referenceCurveList);

            FpmlSerializedCSharp.JointProbabilityTrait serial_jointProbabilityTrait = serial_ReferenceEntityInfo_para.JointProbabilityTrait_;
            string jointProbabilityTraittype = serial_jointProbabilityTrait.Type_.ValueStr;

            this.jointProbabilityTraitViewModel_ = JointProbabilityTraitViewModel.CreateJointProbabilityTrait(jointProbabilityTraittype);
            this.jointProbabilityTraitViewModel_.setFromSerial(serial_jointProbabilityTrait);

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