Beispiel #1
0
        private void updateTickerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                RealTimePositionObject rt = (RealTimePositionObject)dgvRealTimePosition.CurrentRow.DataBoundItem;

                UpdateForm uf = new UpdateForm(rt, "Ticker");
                uf.ShowDialog();
            }
            catch (Exception ex)
            {
                Trace.WriteLine(ex, TraceEnum.LoggedError);
            }
        }
        private void updateTickerToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            try
            {
                ProjectedNeedsSummaryObject ps = (ProjectedNeedsSummaryObject)dgvRealTimePosition.CurrentRow.DataBoundItem;

                RealTimePositionObject rt = new RealTimePositionObject();
                rt.Cusip   = ps.Cusip;
                rt.Ticker  = ps.Ticker;
                rt.Company = "";
                rt.Price   = 0;

                UpdateForm uf = new UpdateForm(rt, "Ticker");
                uf.ShowDialog();
            }
            catch (Exception ex)
            {
                Trace.WriteLine(ex, TraceEnum.LoggedError);
            }
        }