public JobDisplayItem(JobModel job, BUPIDClientController controller) { InitializeComponent(); this.Dock = DockStyle.Fill; this.Job = job; Console.WriteLine(Job.JobName); this.JobNameLabel.Text = job.JobName + " (" + job.State.ToString() + ")"; this.Controller = controller; if (job.State == JobState.Running) { RequestProcessingButton.Enabled = false; } DownloadResultsButton.Visible = false; if (job.State == JobState.Complete) { DownloadResultsButton.Visible = true; RequestProcessingButton.Enabled = false; } }
public void SetJob(JobModel model) { Job = model; JobDescriptionTextBox.Text = Job.JobName; }
public DeconJobConfigDialog(JobModel model) { InitializeComponent(); SetJob(model); }