Exemple #1
0
        private void miQuickAdd_Click(object sender, EventArgs e)
        {
            string text1 = InputBox.ShowInputBox("Symbol", "");

            if (text1 != "")
            {
                if (StockDB.GetSymbol(text1) == null)
                {
                    string[] textArray1 = YahooDataManager.GetStockName(text1);
                    if (textArray1.Length == 3)
                    {
                        StockDB.LoadSymbolRow(text1, textArray1[1], textArray1[2]);
                        StockDB.RecreateFolders();
                        ListForm.Current.SymbolChanged = true;
                        ListForm.Current.RefreshList();
                    }
                }
                ListForm.Current.GotoSymbol(text1);
            }
        }