public static IndexUnderViewModel CreateIndexUnder(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Index serial_underIndex = serial_Class as FpmlSerializedCSharp.Index;

            string indexType = serial_underIndex.Type_.ValueStr;

            return(IndexUnderViewModel.CreateIndexUnder(indexType));
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Index      serial_index      = serial_Class as FpmlSerializedCSharp.Index;
            FpmlSerializedCSharp.StockIndex serial_stockIndex = serial_index.StockIndex_;

            //this.KRCode_ = serial_stockIndex.KrCode_.ValueStr;
            //this.Name_ = serial_stockIndex.Name_.ValueStr;
            //this.BasePrice_ = serial_stockIndex.BasePrice_.DoubleValue();
        }
        public Underlying_paraViewModel makeIndexPara(FpmlSerializedCSharp.Index xml_index)
        {
            Underlying_paraViewModel vm;

            string processType = "";

            if (xml_index.Type_.ValueStr == "stockIndex")
            {
                processType = "geometricBM";
                vm          = Underlying_paraViewModel.CreateUnderlying_para(processType);
            }
            else if (xml_index.Type_.ValueStr == "stockIndex")
            {
                processType = "geometricBM";
                vm          = Underlying_paraViewModel.CreateUnderlying_para(processType);
            }
            else
            {
                processType = "geometricBM";
                vm          = Underlying_paraViewModel.CreateUnderlying_para(processType);
            }

            return(vm);
        }