private void ViewChannelsGrid_ItemChanged(object sender, ListEventItemChangedArgs <ViewChannel> e) { if (panelDraw != null) { panelDraw.Refresh(); } }
private void ViewChannels_ItemChanged(object sender, ListEventItemChangedArgs <ViewChannel> e) { e.OldItem.ColorChanged -= ViewChannel_ColorChanged; e.OldItem.NameChanged -= ViewChannel_ValueChanged; e.OldItem.VisibleChanged -= ViewChannel_ValueChanged; e.NewItem.ColorChanged += ViewChannel_ColorChanged; e.NewItem.NameChanged += ViewChannel_ValueChanged; e.NewItem.VisibleChanged += ViewChannel_ValueChanged; ViewChannel_ColorChanged(e.NewItem, new EventArgs()); m_BindingSource.ResetItem(e.Index); ItemChanged?.Invoke(this, e); }