Ejemplo n.º 1
0
        /*****************************************************************************
        *  EVENT HANDLER:  WatchList_OnWatchlistUpdate
        *  Description:
        *  Parameters:
        *****************************************************************************/
        private void WatchList_OnWatchlistUpdate(object sender, WatchlistEventArgs e)
        {
            int index;

            if (e.EventType == WatchlistEventType.REM_ITEM)
            {
                index = this.Items.IndexOf((WatchlistItem)sender);
                this.Remove(index);
            }
        }
Ejemplo n.º 2
0
        private void lblRemove_Click(object sender, EventArgs e)
        {
            WatchlistEventArgs evArgs = new WatchlistEventArgs(WatchlistEventType.REM_ITEM, this.ID);

            OnWatchlistUpdate(this, evArgs);
        }