Changeset 11576 for branches/OptimizationNetworks/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
- Timestamp:
- 11/25/14 03:26:00 (10 years ago)
- Location:
- branches/OptimizationNetworks
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks
- Property svn:mergeinfo changed
-
branches/OptimizationNetworks/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r10150 r11576 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 468 468 private void jobsTreeView_DragEnter(object sender, DragEventArgs e) { 469 469 e.Effect = DragDropEffects.None; 470 var obj = e.Data.GetData(Constants.DragDropDataFormat) as IDeepCloneable; 470 var obj = (IDeepCloneable)e.Data.GetData(Constants.DragDropDataFormat); 471 471 472 Type objType = obj.GetType(); 472 473 var hiveTaskFound = ItemTask.IsTypeSupported(objType); 474 if (hiveTaskFound) { 473 if (ItemTask.IsTypeSupported(objType)) { 475 474 if (Content.Id != Guid.Empty) e.Effect = DragDropEffects.None; 476 475 else if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key … … 481 480 private void jobsTreeView_DragDrop(object sender, DragEventArgs e) { 482 481 if (e.Effect != DragDropEffects.None) { 483 var obj = e.Data.GetData(Constants.DragDropDataFormat) as IItem;482 var obj = (IItem)e.Data.GetData(Constants.DragDropDataFormat); 484 483 485 484 IItem newObj = null; 486 485 if (e.Effect.HasFlag(DragDropEffects.Copy)) { 487 newObj = obj.Clone(new Cloner()) as IItem;486 newObj = (IItem)obj.Clone(); 488 487 } else { 489 488 newObj = obj; … … 495 494 } 496 495 if (newObj is IExecutable) { 497 IExecutable exec = newObj as IExecutable;496 IExecutable exec = (IExecutable)newObj; 498 497 if (exec.ExecutionState != ExecutionState.Prepared) { 499 498 exec.Prepare();
Note: See TracChangeset
for help on using the changeset viewer.