public bool AddTime(string time, string path, DateValue.Operation oper) { foreach (var elem in DBManager.IsTime(time)) { var aTime = elem.Split('|'); if (aTime[1] == path) { return(false); } } DBManager.AddTime(time, path, oper); return(true); }