/// <summary> /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed. /// <example> /// listviewitemselectionchangedeventhandler.BeginInvoke(sender, e, callback); /// </example> /// </summary> public static IAsyncResult BeginInvoke(this ListViewItemSelectionChangedEventHandler listviewitemselectionchangedeventhandler, Object sender, ListViewItemSelectionChangedEventArgs e, AsyncCallback callback) { if (listviewitemselectionchangedeventhandler == null) { throw new ArgumentNullException("listviewitemselectionchangedeventhandler"); } return(listviewitemselectionchangedeventhandler.BeginInvoke(sender, e, callback, null)); }
public void SetDeviceSelectionChangedCallback(ListViewItemSelectionChangedEventHandler callback) { listViewDevices.ItemSelectionChanged += callback; }
public void SetDeviceSelectionChangedCallback(ListViewItemSelectionChangedEventHandler callback) { listViewDevices.ItemSelectionChanged += callback; }