コード例 #1
0
        public void RemoveItem(string item)
        {
            //Remove the item counter
            CheckedItems.RaiseListChangedEvents = false;
            CheckedItems.Remove(item);
            CheckedItems.RaiseListChangedEvents = true;

            CurveList.RemoveAll(
                new Predicate <CurveItem>(
                    delegate(CurveItem line)
            {
                return(((LogGraphCurveItem)line).ItemID == item);
            }));

            AxisChange();
            m_Parent.UpdateGraph();

            if (SelectedItem == item && OnCurveItemSelected != null)
            {
                OnCurveItemSelected(this, EventArgs.Empty);
            }

            m_HasChanged = true;
        }