Ejemplo n.º 1
0
 private void addToolStripMenuItemAddStock_Click(object sender, EventArgs e)
 {
     if (toolStripTextBoxStockName.Text.Length > 0 && _activeWatchList.Length > 0)
     {
         Stock stock = new Stock(toolStripTextBoxStockName.Text);
         WatchListManager.AddToList(_activeWatchList, stock);
         FillListBoxWatchList();
         listBoxWatchList.SelectedItem = null;
     }
 }
Ejemplo n.º 2
0
 private void toolStipItemAddToWatchList_Click(object sender, EventArgs e)
 {
     if (Linked)
     {
         if (_chart.Stock != null)
         {
             ToolStripMenuItem item = (ToolStripMenuItem)sender;
             WatchListManager.AddToList(item.Text, _chart.Stock);
         }
     }
 }
Ejemplo n.º 3
0
 private void buttonAddStock_Click(object sender, EventArgs e)
 {
     WatchListManager.AddToList(_activeStockList, new Stock(textBoxStockName.Text));
     FillListBoxStocks();
 }