- Timestamp:
- 05/12/16 17:09:12 (9 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/Jobs/FileOpeningViewModel.cs
r13733 r13847 1 using HeuristicLab.Optimization; 2 1 using HeuristicLab.Clients.Hive.WebJobManager.Models; 2 using HeuristicLab.Optimization; 3 using System.Collections.Generic; 3 4 4 5 namespace HeuristicLab.Clients.Hive.WebJobManager.ViewModels … … 10 11 { 11 12 public OptimizerHiveTask SelectedTask { get; set; } 13 public List<string> directories { get; set; } 12 14 public IAlgorithm SelectedAlgorithm { get; set; } 13 15 public Experiment SelectedExperiment { get; set; } 14 16 public BatchRun SelectedBatchRun { get; set; } 15 17 public string message { get; set; } 18 public HiveWebUser currentUser { get; set; } 19 20 public FileOpeningViewModel(HiveWebUser hwu) 21 { 22 currentUser = hwu; 23 } 16 24 } 17 25 } -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/Jobs/JobViewModel.cs
r13733 r13847 1 using System; 1 using HeuristicLab.Clients.Hive.WebJobManager.Models; 2 using System; 2 3 using System.Collections.Generic; 3 4 using System.Linq; … … 11 12 public class JobViewModel 12 13 { 14 public HiveWebUser currentUser { get; set; } 13 15 public List<RefreshableJob> userJobs { get; set; } 14 16 … … 17 19 public List<HiveTask> selectedHiveTasks { get; set; } 18 20 public string message { get; set; } 19 public JobViewModel( )21 public JobViewModel(HiveWebUser hwu) 20 22 { 21 23 userJobs = null; … … 23 25 selectedHiveTasks = new List<HiveTask>(); 24 26 message = ""; 27 currentUser = hwu; 25 28 } 26 29 } -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/Jobs/UploadedJobViewModel.cs
r13733 r13847 1 using HeuristicLab.Optimization; 1 using HeuristicLab.Clients.Hive.WebJobManager.Models; 2 using HeuristicLab.Optimization; 2 3 using System; 3 4 using System.Collections.Generic; … … 12 13 public class UploadedJobViewModel 13 14 { 14 public UploadedJobViewModel() 15 public UploadedJobViewModel(HiveWebUser hwu) 16 { 17 FullDatePaths = new List<string>(); 18 DisplayDatePaths = new List<string>(); 19 FullFilesPaths = new List<string>(); 20 DisplayFilesPaths = new List<string>(); 21 SelectedIndex = -1; 22 currentUser = hwu; 23 } 24 public void clear() 15 25 { 16 26 FullDatePaths = new List<string>(); … … 20 30 SelectedIndex = -1; 21 31 } 22 23 32 public List<string> FullDatePaths { get; set; } 24 33 public List<string> DisplayDatePaths { get; set; } … … 27 36 public int SelectedIndex { get; set; } 28 37 public string message { get; set; } 29 38 public HiveWebUser currentUser { get; set; } 30 39 31 40 } -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/NavbarViewModel.cs
r13733 r13847 1 using System; 1 using HeuristicLab.Clients.Hive.WebJobManager.Models; 2 using System; 2 3 using System.Collections.Generic; 3 4 using System.Linq; … … 10 11 11 12 public string Active { get; set; } 13 public HiveWebUser User { get; set; } 12 14 13 public NavbarViewModel(string ac )15 public NavbarViewModel(string ac, HiveWebUser hwu ) 14 16 { 15 17 Active = ac; 18 User = hwu; 16 19 } 17 20 } -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/User/UserViewModel.cs
r13805 r13847 1 1 using HeuristicLab.Clients.Access.Administration; 2 using HeuristicLab.Clients.Hive.WebJobManager.Models; 2 3 using System; 3 4 using System.Collections.Generic; … … 12 13 public class UserViewModel 13 14 { 14 15 public HiveWebUser currentUser { get; set; } 15 16 public string message { get; set; } 16 17 public AccessAdministrationClient accessClient { get; set; } … … 31 32 /// </summary> 32 33 /// <param name="ac">AccessAdminClient for connection</param> 33 public UserViewModel(AccessAdministrationClient ac )34 public UserViewModel(AccessAdministrationClient ac, HiveWebUser hwu) 34 35 { 36 currentUser = hwu; 35 37 users = new List<Access.User>(); 36 38 accessClient = ac;
Note: See TracChangeset
for help on using the changeset viewer.