Exemplo n.º 1
0
 protected BaseProcessRootNode(IEnumerable <INode> childNodes, ProcessGrouping grouping, bool expanded)
 {
     InitializeComponent();
     _ignoreCheckedChangedEvents = false;
     _childrenSize = new Size(0, 0);
     _grouping     = grouping;
     _expanded     = expanded;
     ChildNodes    = new List <INode>(childNodes);
     ChildNodes.Where(node => node is IRootNode).Cast <IRootNode>().ToList()
     .ForEach(node => node.SizeChanged += RootNode_SizeChanged);
     ChildNodes.ForEach(node =>
     {
         node.CheckedChanged += Node_CheckedChanged;
         node.ActionTaken    += Node_ActionTaken;
     });
 }
 private ProcessMachineNode(Guid id, Machine machine, IEnumerable <INode> childNodes, ProcessGrouping grouping)
     : base(childNodes, grouping, !Settings.Client.P_CollapsedNodes[grouping].Contains(id))
 {
     _id     = id;
     Machine = machine;
     //BackColor = Color.FromArgb(255, 224, 192);
 }
Exemplo n.º 3
0
 private ProcessGroupNode(Guid id, Group group, IEnumerable <INode> childNodes, ProcessGrouping grouping)
     : base(childNodes, grouping, !Settings.Client.P_CollapsedNodes[grouping].Contains(id))
 {
     _id   = id;
     Group = group;
     //BackColor = Color.FromArgb(255, 208, 160);
 }
 public ProcessMachineNode(Machine machine, Guid?groupID, IEnumerable <INode> childNodes, ProcessGrouping grouping)
     : this(groupID.HasValue ? MakeID(machine.ID, groupID.Value) : machine.ID, machine, childNodes, grouping)
 {
 }
Exemplo n.º 5
0
 public ProcessGroupNode(Group group, Guid?machineID, IEnumerable <INode> childNodes, ProcessGrouping grouping)
     : this(machineID.HasValue ? MakeID(@group.ID, machineID.Value) : @group.ID, group, childNodes, grouping)
 {
 }