Exemplo n.º 1
0
        private void mnu_StockUpdateSingle_Click(object sender, EventArgs e)
        {
            //Create Instance of Pop Up Window Update Price
            StockUpdateForm frm = new StockUpdateForm(stock, TransactionType.Update);

            if (frm.ShowDialog() == DialogResult.OK & currentForm != MyForms.Broker)
            {
                calledForm.UpdateValue();
            }
        }
Exemplo n.º 2
0
        private void mnu_Stock_Split_Click(object sender, EventArgs e)
        {
            //Create Instance of Pop Up Window Update Price
            StockUpdateForm frm = new StockUpdateForm(stock, TransactionType.Split);

            //Check to see if Valuation Need to be Updated
            if (frm.ShowDialog() == DialogResult.OK & currentForm != MyForms.Broker)
            {
                calledForm.UpdateValue();
            }
        }
Exemplo n.º 3
0
        private void mnu_Stock_Update_All_Click(object sender, EventArgs e)
        {
            //Create List of all stocks owned
            List <StockModel> Stocks = GlobalConfig.Connection.Stocks_LoadAll();
            // Create Variable for Form
            StockUpdateForm frm;

            foreach (StockModel sm in Stocks)
            {
                //Create Instance of Form
                frm = new StockUpdateForm(sm, TransactionType.Update);
                //Display Form using ShowDialog
                frm.ShowDialog();
            }
            //UPdate the existing Form Display and Charts
            calledForm.UpdateValue();
        }