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