- Timestamp:
- 08/29/18 16:45:24 (6 years ago)
- Location:
- branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectResourcesView.cs
r16040 r16095 436 436 } 437 437 treeView.Nodes.Add(ungroupedGroupNode); 438 } else {439 ungroupedGroupNode ?.Nodes.Clear();438 } else if (ungroupedGroupNode != null) { 439 ungroupedGroupNode.Nodes.Clear(); 440 440 } 441 441 -
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.cs
r16072 r16095 338 338 339 339 foreach (var r in resources) { 340 r.ParentResourceId = targetResource ?.Id;340 r.ParentResourceId = targetResource != null ? targetResource.Id : (Guid?)null; 341 341 } 342 342 … … 381 381 var resources = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as IEnumerable<Resource>; 382 382 var targetNode = treeView.GetNodeAt(treeView.PointToClient(new Point(e.X, e.Y))); 383 var targetResource = targetNode?.Tagas Resource;383 var targetResource = (targetNode != null ? targetNode.Tag : null) as Resource; 384 384 385 385 if (!IsAdmin() … … 637 637 n.ForeColor = offlineColor; 638 638 if (s.LastHeartbeat.HasValue) 639 n.Text += " [" + s.LastHeartbeat?.ToString("g") + "]";639 n.Text += " [" + (s.LastHeartbeat != null ? s.LastHeartbeat.Value.ToString("g") : null) + "]"; 640 640 } 641 641 } else {
Note: See TracChangeset
for help on using the changeset viewer.