Example #1
0
        private IDataAnalysisProblem ExportProblem(IDataAnalysisProblem source)
        {
            var preprocessedProblem = (IDataAnalysisProblem)source.Clone();

            preprocessedProblem.ProblemDataParameter.ActualValue = CreateNewProblemData();
            return(preprocessedProblem);
        }
 private void algorithmProblemTabPage_DragDrop(object sender, DragEventArgs e)
 {
     if (e.Effect != DragDropEffects.None)
     {
         IDataAnalysisProblem problem = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as IDataAnalysisProblem;
         if ((e.Effect & DragDropEffects.Copy) == DragDropEffects.Copy)
         {
             problem = (IDataAnalysisProblem)problem.Clone();
         }
         Content.Problem = problem;
     }
 }
 private IDataAnalysisProblem ExportProblem(IDataAnalysisProblem source) {
   var preprocessedProblem = (IDataAnalysisProblem)source.Clone();
   preprocessedProblem.ProblemDataParameter.ActualValue = CreateNewProblemData();
   return preprocessedProblem;
 }