Пример #1
0
        public TreeNode AddJob(Job job)
        {
            var jobNode = new TreeNode(job.Name, 4, 4);

            jobNode.Tag = job;
            JobsNode.Nodes.Add(jobNode);

            JobsNode.Expand();

            return(jobNode);
        }
Пример #2
0
        public TreeNode AddJob(string jobName)
        {
            var jobNode = new TreeNode(jobName, 4, 4);

            jobNode.Tag = new Job {
                Name = jobName
            };
            JobsNode.Nodes.Add(jobNode);

            JobsNode.Expand();

            return(jobNode);
        }