Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/07/18 15:34:23 (6 years ago)
Author:
jkarder
Message:

#2839: worked on hive project management

  • added .ToList() calls within some service methods to prevent TransactionExceptions
  • added check for InvokeRequired
  • improved RunInHiveMenuItem
  • removed .resx files from projects
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/MenuItems/RunInHiveMenuItem.cs

    r16057 r16060  
    2222using System;
    2323using System.Collections.Generic;
     24using System.Linq;
    2425using System.Threading;
     26using System.Windows.Forms;
     27using HeuristicLab.Clients.Hive.JobManager.Views;
    2528using HeuristicLab.Core;
    2629using HeuristicLab.MainForm;
     
    2831using HeuristicLab.Optimizer;
    2932using HeuristicLab.PluginInfrastructure;
    30 using HeuristicLab.Clients.Hive.JobManager.Views;
    31 using System.Windows.Forms;
    32 using System.Linq;
    3333
    3434namespace HeuristicLab.Clients.Hive.JobManager {
     
    8585      task.ItemTask.ComputeInParallel = content is Experiment || content is BatchRun;
    8686
     87      if (HiveClient.Instance.Projects.Count == 1) {
     88        var project = HiveClient.Instance.Projects.FirstOrDefault();
     89        if (project != null && project.Id != Guid.Empty)
     90          rJob.Job.ProjectId = project.Id;
     91      }
    8792
    8893      var hiveResourceSelectorDialog = new HiveResourceSelectorDialog(rJob.Job.Id, rJob.Job.ProjectId);
Note: See TracChangeset for help on using the changeset viewer.