コード例 #1
0
        public IDictionary <string, object> GetTagById(int id)
        {
            Tag t = tag_store.GetTagById(id);

            if (t == null)
            {
                throw new DBusException("Tag with id {0} does not exist.", id);
            }

            return(CreateDictFromTag(t));
        }
コード例 #2
0
    public Face(uint id, uint ph, uint tg, Gdk.Rectangle r) : base(id)
    {
        TagStore tag_store = FSpot.Core.Database.Tags;

        rect     = r;
        photo_id = ph;
        tag_id   = tg;

        tag = tag_store.GetTagById((int)tag_id);
    }