//public override string dataLoad(DateTime refDate)
        //{

        //    //EquityMarketDataLoader emdl = EquityMarketDataLoader.CreateMarketDataLoader();

        //    string provider = Excel_marketDataSymbol.getProvider(this.symbol_);// dao.PROVIDER_;

        //    EquityMarketDataLoader loader = EquityMarketDataLoader.CreateMarketDataLoader(provider);

        //    string value = loader.load(refDate, code);

        //    return value;

        //}

        public override Excel_underlyingInfoViewModel underlyingInfoVM()
        {
            Excel_stockIndexViewModel e_sivm = new Excel_stockIndexViewModel();

            e_sivm.KrCode_ = this.Symbol_;
            e_sivm.NameTrans_ = new NameTrans(this.name_eng_);
            
            return e_sivm;
        }
        //public override string dataLoad(DateTime refDate)
        //{

        //    //EquityMarketDataLoader emdl = EquityMarketDataLoader.CreateMarketDataLoader();

        //    string provider = Excel_marketDataSymbol.getProvider(this.symbol_);// dao.PROVIDER_;

        //    EquityMarketDataLoader loader = EquityMarketDataLoader.CreateMarketDataLoader(provider);

        //    string value = loader.load(refDate, code);

        //    return value;

        //}

        public override Excel_underlyingInfoViewModel underlyingInfoVM()
        {
            Excel_stockIndexViewModel e_sivm = new Excel_stockIndexViewModel();

            e_sivm.KrCode_    = this.Symbol_;
            e_sivm.NameTrans_ = new NameTrans(this.name_eng_);

            return(e_sivm);
        }
Esempio n. 3
0
        private void resultDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow dgr = sender as DataGridRow;

            //if (dgr != null)
            //{
            //    IndexTickerInfo iti = dgr.Item as IndexTickerInfo;

            //    if ( iti.Index_type_.ToUpper() == "STOCK" )
            //    {
            Excel_stockIndexViewModel e_sivm = new Excel_stockIndexViewModel();

            //        e_sivm.KrCode_ = iti.KrCode_;
            //        e_sivm.Name_ = iti.Name_;
            //        //e_sivm.BasePrice_ = "testBasePrice";

            //        this.selectedUnderlyingVM_ = e_sivm;
            //    }
            //    else if ( iti.Index_type_ == "CURRENCY" )
            //    {
            //        throw new NotImplementedException();
            //    }
            //    else if (iti.Index_type_ == "INTERESTRATE")
            //    {
            //        throw new NotImplementedException();
            //    }
            //    else if (iti.Index_type_ == "SWAPRATE")
            //    {
            //        throw new NotImplementedException();
            //    }
            //    else
            //    {
            //        throw new NotImplementedException();
            //    }

            //    ((Window)this.Parent).DialogResult = true;
            //    ((Window)this.Parent).Close();
            //}
        }
        private void resultDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow dgr = sender as DataGridRow;

            //if (dgr != null)
            //{
            //    IndexTickerInfo iti = dgr.Item as IndexTickerInfo;

            //    if ( iti.Index_type_.ToUpper() == "STOCK" )
            //    {
                    Excel_stockIndexViewModel e_sivm = new Excel_stockIndexViewModel();

            //        e_sivm.KrCode_ = iti.KrCode_;
            //        e_sivm.Name_ = iti.Name_;
            //        //e_sivm.BasePrice_ = "testBasePrice";

            //        this.selectedUnderlyingVM_ = e_sivm;
            //    }
            //    else if ( iti.Index_type_ == "CURRENCY" )
            //    {
            //        throw new NotImplementedException();
            //    }
            //    else if (iti.Index_type_ == "INTERESTRATE")
            //    {
            //        throw new NotImplementedException();
            //    }
            //    else if (iti.Index_type_ == "SWAPRATE")
            //    {
            //        throw new NotImplementedException();
            //    }
            //    else 
            //    {
            //        throw new NotImplementedException();
            //    }

            //    ((Window)this.Parent).DialogResult = true;
            //    ((Window)this.Parent).Close();
            //}

        }