protected virtual void OnDeviceRemoved(object sender, DeviceRepositoryEventArgs args) { devices.Remove(args.Device); treeView.RefreshData(); }
protected virtual void OnDeviceAdded(object sender, DeviceRepositoryEventArgs args) { devices.Add(args.Device); args.Device.ApplicationsChanged += (_sender, e) => OnDeviceApplicationsChanged(_sender as Device); treeView.RefreshData(); }