Beispiel #1
0
        private void addStockMenuItem_Click(object sender, EventArgs e)
        {
            StockManager stockManager = new StockManager(null);

            if (stockManager.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            else
            {
                InitStockList();
            }
        }
Beispiel #2
0
 private void stockCodeListView_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && stockCodeListView.SelectedItems.Count == 1)
     {
         ListViewItem selItem = stockCodeListView.SelectedItems[0];
         if (null != selItem.Tag)
         {
             ChungKhoan stock = selItem.Tag as ChungKhoan;
             if (null != stock)
             {
                 StockManager form = new StockManager(stock);
                 if (form.ShowDialog() != DialogResult.OK)
                 {
                     return;
                 }
                 else
                 {
                     InitStockList();
                 }
             }
         }
     }
 }