Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16094 for branches


Ignore:
Timestamp:
08/29/18 16:01:00 (6 years ago)
Author:
jkarder
Message:

#2839: worked on hive project management

  • removed usage inline out variables and string interpolation
Location:
branches/2839_HiveProjectManagement
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveResourceSelector.cs

    r15995 r16094  
    714714      double sumFreeMemory = selectedSlaves.Sum(x => x.FreeMemory.GetValueOrDefault()) / 1024.0;
    715715
    716       coresSummaryLabel.Text = $"{sumCores} Total ({sumFreeCores} Free / {sumCores - sumFreeCores} Used)";
    717       memorySummaryLabel.Text = $"{sumMemory:0.00} GB Total ({sumFreeMemory:0.00} GB Free / {(sumMemory - sumFreeMemory):0.00} GB Used)";
     716      coresSummaryLabel.Text = string.Format("{0} Total ({1} Free / {2} Used)", sumCores, sumFreeCores, sumCores - sumFreeCores);
     717      memorySummaryLabel.Text = string.Format("{0:0.00} GB Total ({1:0.00} GB Free / {2:0.00} GB Used)", sumMemory, sumFreeMemory, sumMemory - sumFreeMemory);
    718718    }
    719719
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/HiveTaskView.cs

    r16057 r16094  
    213213
    214214    private void coresNeededComboBox_SelectedIndexChanged(object sender, EventArgs e) {
    215       if (int.TryParse(coresNeededComboBox.SelectedItem.ToString(), out int cores))
     215      int cores;
     216      if (int.TryParse(coresNeededComboBox.SelectedItem.ToString(), out cores))
    216217        Content.Task.CoresNeeded = cores;
    217218    }
Note: See TracChangeset for help on using the changeset viewer.