Beispiel #1
0
        public Dictionary<string, LogCategoryInfo> GetCategories()
        {
            Dictionary<string, LogCategoryInfo> list = new Dictionary<string, LogCategoryInfo>(8);

            for (int i = 0; i < Controls.Count; i++)
            {
                if (Controls[i] is LogCategoriesControl)
                {
                    LogCategoriesControl c = (LogCategoriesControl)Controls[i];

                    LogCategoryInfo info = new LogCategoryInfo(c.CategoryEnabled, c.CategoryColor);
                    list.Add(c.CategoryName, info);
                }
            }

            return list;
        }
Beispiel #2
0
        public Dictionary <string, LogCategoryInfo> GetCategories()
        {
            Dictionary <string, LogCategoryInfo> list = new Dictionary <string, LogCategoryInfo>(8);

            for (int i = 0; i < Controls.Count; i++)
            {
                if (Controls[i] is LogCategoriesControl)
                {
                    LogCategoriesControl c = (LogCategoriesControl)Controls[i];

                    LogCategoryInfo info = new LogCategoryInfo(c.CategoryEnabled, c.CategoryColor);
                    list.Add(c.CategoryName, info);
                }
            }

            return(list);
        }