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; } }
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; } }