- Timestamp:
- 11/24/11 16:26:39 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs
r7059 r7068 48 48 49 49 protected override RefreshableJob CreateItem() { 50 return new RefreshableJob() { IsAllowedPrivileged = HiveClient.Instance.IsAllowedPrivileged }; 50 var refreshableJob = new RefreshableJob() { IsAllowedPrivileged = HiveClient.Instance.IsAllowedPrivileged }; 51 refreshableJob.Job.Name = "New Hive Job"; 52 return refreshableJob; 51 53 } 52 54 53 55 protected override void removeButton_Click(object sender, EventArgs e) { 54 DialogResult result = MessageBox.Show("This action will permanently delete this job (also on the hive server). Continue?", " Delete Job", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);56 DialogResult result = MessageBox.Show("This action will permanently delete this job (also on the hive server). Continue?", "HeuristicLab Hive Job Manager", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); 55 57 if (result == DialogResult.OK) { 56 58 base.removeButton_Click(sender, e); -
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r7067 r7068 334 334 #region Control events 335 335 private void startButton_Click(object sender, EventArgs e) { 336 HiveClient.StartJob((Exception ex) => ErrorHandling.ShowErrorDialog(this, "Start failed.", ex), Content, new CancellationToken()); 336 if (nameTextBox.Text.Trim() == string.Empty) { 337 MessageBox.Show("Please enter a name for the job before uploading it!", "HeuristicLab Hive Job Manager", MessageBoxButtons.OK, MessageBoxIcon.Information); 338 } else { 339 HiveClient.StartJob((Exception ex) => ErrorHandling.ShowErrorDialog(this, "Start failed.", ex), Content, new CancellationToken()); 340 } 337 341 } 338 342 private void pauseButton_Click(object sender, EventArgs e) {
Note: See TracChangeset
for help on using the changeset viewer.