protected void addLogType(int id, string name, bool asFound) { Data.LogType lt = new Data.LogType(); lt.ID = id; lt.Name = name; lt.AsFound = asFound; LogTypes.Add(lt); }
public static GAPPSF.Core.Data.LogType GetLogType(int typeId) { GAPPSF.Core.Data.LogType result = null; result = (from gt in ApplicationData.Instance.LogTypes where gt.ID == typeId select gt).FirstOrDefault(); if (result == null) { //take special ID result = (from gt in ApplicationData.Instance.LogTypes where gt.ID == 0 select gt).FirstOrDefault(); } return(result); }