Пример #1
0
        public static bool isBound(String TagName)
        {
            //Check if a tag with given name is bound to a video.
            SQLiteService sql  = new SQLiteService();
            List <Tag>    tags = sql.GetUnboundTags().ToList <Tag>();
            Tag           tag  = sql.LoadTagByName(TagName);

            if ((from t in tags where tag.id == t.id select t).Any())
            {
                return(false); //if the id is found in the unbound list -> tag isn't bound
            }
            else
            {
                return(true);
            }
        }