public TreeNode AddJob(Job job) { var jobNode = new TreeNode(job.Name, 4, 4); jobNode.Tag = job; JobsNode.Nodes.Add(jobNode); JobsNode.Expand(); return(jobNode); }
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); }