コード例 #1
0
 private void problemTabPage_DragDrop(object sender, DragEventArgs e)
 {
     if (e.Effect != DragDropEffects.None)
     {
         IProblem problem = e.Data.GetData("Value") as IProblem;
         if ((e.Effect & DragDropEffects.Copy) == DragDropEffects.Copy)
         {
             problem = (IProblem)problem.Clone();
         }
         Content.Problem = problem;
     }
 }
コード例 #2
0
 protected virtual void problemTabPage_DragDrop(object sender, DragEventArgs e)
 {
     if (e.Effect != DragDropEffects.None)
     {
         IProblem problem = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as IProblem;
         if (e.Effect.HasFlag(DragDropEffects.Copy))
         {
             problem = (IProblem)problem.Clone();
         }
         Content.Problem = problem;
     }
 }