Beispiel #1
0
 void ChangeDevice(Device device)
 {
     if (device != null)
     {
         device.ProcessesChanged += this.Device_ProcessesChanged;
         this.topContext?.Close();
         this.topContext = TopContext.Start(device, this.kTopIntervalSeconds, this.TopContext_Received);
     }
     else
     {
         this.topContext?.Close();
     }
     this.UpdateControlState();
 }