public Instrument_swap()
        {
            this.InstVM_ = new Excel_instrument_structuredSwapViewModel(true);
            this.swapInterfaceVM_ = this.InstVM_.Excel_interfaceViewModel_ as Excel_structuredSwapViewModel;

            this.swapInterfaceVM_.Excel_swapLegViewModel_.Add(new Excel_structuredSwapLegViewModel());
            this.swapInterfaceVM_.Excel_swapLegViewModel_.Add(new Excel_hifiveSwapLegViewModel());

            this.ErrLog_ = new ErrLog();
        }
        public void load_instrument(string itemCode)
        {
            try
            {
                Excel_instrumentViewModel e_i_hvm = MasterInformationViewModel.loadInstrumentVM(itemCode);

                //this.InstVM_ = new Excel_instrument_hifiveViewModel();
                this.InstVM_ = e_i_hvm as Excel_instrument_structuredSwapViewModel;

                if (this.InstVM_ == null)
                    throw new Exception("instrument is not structuredSwap type");

                this.InstVM_.loadInterfaceVMFromXml(XMLFileLoader.LoadInstrument(itemCode));

                this.swapInterfaceVM_ = this.InstVM_.Excel_interfaceViewModel_ as Excel_structuredSwapViewModel;

                // parameter load는 나중에 하자으.

                ////
                //Excel_standardSwapParaViewModel e_sspvm = this.InstVM_.Excel_parameterViewModel_ as Excel_standardSwapParaViewModel;
                ////

                //foreach (var item in InstVM_.Excel_interfaceViewModel_.Excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_)
                //{
                //    Excel_underlyingInfo_paraViewModel e_u_pvm = new Excel_underlyingInfo_paraViewModel();

                //    e_u_pvm.buildParaSetting(item);

                //    e_sspvm.Excel_underlyingCalcInfo_paraViewModel_.Excel_underlyingInfo_paraViewModel_.Add(e_u_pvm);
                //    e_sspvm.Excel_underlyingCalcInfo_paraViewModel_.Excel_correlationInfo_paraViewModel_.addDiagonal(e_u_pvm);

                //}

                this.ErrLog_.add("load complete");
            }
            catch (Exception e)
            {
                this.ErrLog_.add("load err : " + e.Message);
            }
        }