Ejemplo n.º 1
0
        private List <Group> ReadGroupsTree(string currentElement, List <Group> groupsList)
        {
            groupsList.Add(
                new Group()
            {
                Groupname = AutoItX.ControlTreeView(GROUPSLIST_TITLE, "", "WindowsForms10.SysTreeView32.app.0.2c908d51", "GetText", currentElement, ""),
                Path      = currentElement
            });

            string count = AutoItX.ControlTreeView(GROUPSLIST_TITLE, "", "WindowsForms10.SysTreeView32.app.0.2c908d51", "GetItemCount", currentElement, "");

            for (int i = 0; i < int.Parse(count); i++)
            {
                ReadGroupsTree(currentElement + "|#" + i, groupsList);
            }

            return(groupsList);
        }
Ejemplo n.º 2
0
 private void SelectGroup(string item)
 {
     AutoItX.ControlTreeView(GROUPSLIST_TITLE, "", "WindowsForms10.SysTreeView32.app.0.2c908d51", "Select", item, "");
 }
 public string ControlTreeView(string title, string text, string control, string command, string extra1, string extra2, int maxLen = 65535)
 {
     return(AutoItX.ControlTreeView(title, text, control, command, extra1, extra2, maxLen));
 }
Ejemplo n.º 4
0
        public bool IsGroupSingle()
        {
            string count = AutoItX.ControlTreeView(GROUPSLIST_TITLE, "", "WindowsForms10.SysTreeView32.app.0.2c908d51", "GetItemCount", "#0", "");

            return(int.Parse(count) < 2);
        }
 public string ControlTreeView(string command, string extra1, string extra2, string control = "", int maxLen = 65535)
 {
     return(AutoItX.ControlTreeView(thiswindowHandle, ControlGetHandle(control), command, extra1, extra2, maxLen));
 }