Beispiel #1
0
            // Class initialisation.  List of groups is also to be passed
            public UnapprovedUpdates(clsConfig configobject, clsConfig.GroupUpdateRuleCollection showgroups)
            {
                // Store the config object for use
                cfg = configobject;

                // Store the groups to be managed, sorting them by display order
                groups = showgroups;
                groups.SortByDisplayOrder();
            }
        private void UpdateGroupUpdateRules()
        {
            // Sort rules before displaying
            grouprules.SortByDisplayOrder();

            // Disable redrawing treeview while we clear it and update with current rules
            trvGroupRules.BeginUpdate();
            trvGroupRules.Nodes.Clear();

            // Add root node and start going through all computer groups
            root = trvGroupRules.Nodes.Add("Release Day");
            AddChildGroupNodes(root, null, 0);

            // Expand tree view
            trvGroupRules.ExpandAll();

            // Redraw the tree now that we've finished updating
            trvGroupRules.EndUpdate();

            // Populate group combo box (parent box will be populated when a group is selected)
            RepopulateGroupList();
        }
Beispiel #3
0
            // Class initialisation.  List of groups is also to be passed
            public UnapprovedUpdates(clsConfig configobject, clsConfig.GroupUpdateRuleCollection showgroups)
            {
                // Store the config object for use
                cfg = configobject;

                // Store the groups to be managed, sorting them by display order
                groups = showgroups;
                groups.SortByDisplayOrder();
            }