Exemplo n.º 1
0
      private void _listDevicesRefresh() {
         if (_selectedTask == null) {
            return;
         }

         _selectedDevice = null;
         listDevices.Items.Clear();

         var req = new GetDevicesOfDiagnosticsTask();
         req.TaskId = _selectedTask.TaskId;

         SendRequest(req);
      }
 internal void Handle(GetDevicesOfDiagnosticsTask input) {
    using (var dbConn = DatabaseManager.DbConn()) {
       var tasks = dbConn.ExecuteBpl(new DiagnosticsTaskDeviceGetByTaskId { TaskId = input.TaskId });
       Reply(tasks);
    }
 }