Пример #1
0
 public JobCommandTreeNode(PolyCommandTreeNode parent, JobConnection jobconn, JobCommand command)
     : base(parent, command.GroupId)
 {
     m_command = command;
     m_jobconn = jobconn;
     SetAppObject(new JobCommandAppObject {
         JobFile = jobconn.FileName, CommandGroupId = command.GroupId
     });
 }
Пример #2
0
 public static ITreeNode GetCommandTreeNode(PolyCommandTreeNode parent, JobCommand command, JobConnection jobconn)
 {
     if (command is JobPolyCommand)
     {
         return(new PolyCommandTreeNode(parent, jobconn, (JobPolyCommand)command));
     }
     else
     {
         return(new JobCommandTreeNode(parent, jobconn, command));
     }
 }