示例#1
0
        private void Picb_RefreshClick(object sender, EventArgs e)
        {
            try {
                FileHandling.SaveStockInformation(
                    HtmlHandling.GetStockInformation(lbl_StockName.Text)
                    );
            }
            catch { MessageBox.Show("Enter a valid stock name or check internet connection"); }
            StockViewer _stockViewer = new StockViewer(false, lbl_StockName.Text);

            this.Dispose();
        }
示例#2
0
 void KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         try {
             FileHandling.SaveStockInformation(
                 HtmlHandling.GetStockInformation(txt_StockName.Text)
                 );
             StockViewer _stockViewer = new StockViewer(false, "");
             this.Dispose();
         }
         catch { MessageBox.Show("Enter a valid stock name or check internet connection"); }
     }
 }