Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/30/19 09:30:40 (6 years ago)
Author:
jkarder
Message:

#2839: worked on hive project management

  • improved loading times of hive administrator view
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectJobsView.cs

    r16565 r16878  
    2626using System.Threading.Tasks;
    2727using System.Windows.Forms;
     28using HeuristicLab.Clients.Hive.Views;
     29using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
     31using HeuristicLab.Data;
    2832using HeuristicLab.MainForm;
    2933using HeuristicLab.MainForm.WindowsForms;
    30 using HeuristicLab.Core.Views;
    31 using HeuristicLab.Data;
    32 using HeuristicLab.Clients.Hive.Views;
    33 using HeuristicLab.Core;
    3434
    3535namespace HeuristicLab.Clients.Hive.Administrator.Views {
     
    297297
    298298    private void RefreshJobs() {
    299       HiveAdminClient.Instance.RefreshJobs();
     299      HiveAdminClient.Instance.RefreshJobs(Content.Id);
    300300      UpdateJobs();
    301301      SetEnabledStateOfControls();
     
    303303
    304304    private StringMatrix CreateValueMatrix() {
    305       if (Content == null || Content.Id == Guid.Empty)
     305      if (Content == null || Content.Id == Guid.Empty || !HiveAdminClient.Instance.Jobs.ContainsKey(Content.Id))
    306306        return new StringMatrix();
    307307
     
    352352
    353353            matrixView.DataGridView.AutoResizeColumns();
    354             matrixView.DataGridView.Columns[0].MinimumWidth = 90;
    355             matrixView.DataGridView.Columns[1].MinimumWidth = 108;
    356354          }
    357355        }
     
    360358
    361359    private void RefreshJobsAsync() {
    362       HiveAdminClient.Instance.RefreshJobs();
     360      HiveAdminClient.Instance.RefreshJobs(Content.Id);
    363361      UpdateJobs();
    364362    }
Note: See TracChangeset for help on using the changeset viewer.