コード例 #1
0
        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;
            }
        }
コード例 #2
0
 public void SetJob(JobModel model)
 {
     Job = model;
     JobDescriptionTextBox.Text = Job.JobName;
 }
コード例 #3
0
 public DeconJobConfigDialog(JobModel model)
 {
     InitializeComponent();
     SetJob(model);
 }