private void biAddEvent_ItemClick(object sender, ItemClickEventArgs e)
        {
            TickerEvent ev = new TickerEvent();

            ev.Time = Time;
            EventEditForm form = new EventEditForm();

            form.Event = ev;
            if (form.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            ev.Current = Ticker.GetCurrent(ev.Time);
            Ticker.Events.Add(ev);
        }
        private void biEditEvent_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (Ticker == null)
            {
                return;
            }
            TickerEvent   ev   = SelectedEvent.Clone();
            EventEditForm form = new EventEditForm();

            form.Event = ev;
            if (form.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            SelectedEvent.Assign(ev);
            Ticker.OnEventsChanged();
        }
        private void biAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (Ticker == null)
            {
                return;
            }

            TickerEvent ev = new TickerEvent();

            ev.Time = DateTime.UtcNow;
            EventEditForm form = new EventEditForm();

            form.Event = ev;
            if (form.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            ev.Current = Ticker.GetCurrent(ev.Time);
            Ticker.Events.Add(ev);
        }
        private void biEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (Ticker == null)
            {
                return;
            }
            TickerEvent focused = (TickerEvent)this.gvEvents.GetFocusedRow();

            if (focused == null)
            {
                return;
            }
            TickerEvent   ev   = focused.Clone();
            EventEditForm form = new EventEditForm();

            form.Event = ev;
            if (form.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            focused.Assign(ev);
            Ticker.OnEventsChanged();
        }