Esempio n. 1
0
        private void datagrid_trade_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var senderGrid = (DataGridView)sender;

            if (senderGrid.Columns[e.ColumnIndex].HeaderText == "Edit")
            {
                TradeEntry tradeEntry = new TradeEntry(int.Parse(senderGrid.Rows[e.RowIndex].Cells["TradeId"].Value.ToString()));
                tradeEntry.ShowDialog();
            }
        }
Esempio n. 2
0
        private void btnAddNewTrade_Click(object sender, EventArgs e)
        {
            TradeEntry tradeEntry = new TradeEntry();

            tradeEntry.ShowDialog();
        }