Example #1
0
        public LogGroup CreateLogGroup(string _name)
        {
            LogGroup b_LogGroup = new LogGroup(_name);

            LogGroups.Add(b_LogGroup);
            OrderLogGroups();
            return(b_LogGroup);
        }
Example #2
0
        public LogGroup GetOrCreateLogGroup(string _name)
        {
            LogGroup b_LogGroup = LogGroups.Find(x => x.Name == _name);

            if (b_LogGroup == null)
            {
                b_LogGroup = new LogGroup(_name);
                LogGroups.Add(b_LogGroup);
                OrderLogGroups();
            }
            return(b_LogGroup);
        }