public LogGroup CreateLogGroup(string _name) { LogGroup b_LogGroup = new LogGroup(_name); LogGroups.Add(b_LogGroup); OrderLogGroups(); return(b_LogGroup); }
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); }