示例#1
0
        public override void Remove()
        {
            if (HighlightingContext.StateHighlighting)
            {
                _context.EnqueuePre(delegate
                {
                    this.BackColor = HighlightingContext.Colors[ListViewItemState.Removed];
                    this.ForeColor = PhUtils.GetForeColor(this.BackColor);

                    _context.Enqueue(delegate
                    {
                        this.BaseRemove();
                    });
                });
            }
            else
            {
                base.Remove();
            }
        }