Exemple #1
0
        public static void AddOrUpdate(MyPhoto.Entities.Entity.User user)
        {
            var search = new SearchbleUser(user);
            UserSearchDocument searchDoc = new UserSearchDocument(search);

            IndexBuilder.SaveOrUpdateDocument(searchDoc);
            IndexBuilder.BuildSpellIndex(search.Spell.ToList());
        }
Exemple #2
0
        public static void AddOrUpdate(MyPhoto.Entities.Entity.Photo photo)
        {
            var search = new SearchblePhoto(photo);
            PhotoSearchDocument searchDoc = new PhotoSearchDocument(search);
            IndexBuilder.SaveOrUpdateDocument(searchDoc);

            IndexBuilder.BuildSpellIndex(search.Spell.ToList());
        }
 private void OnMouseLeaveHandler(object sender, MouseEventArgs e)
 {
     BitmapEffect = null;
     _mainCanvas.DebugPanelListBoxHeader = "";
     if (null != MyPhoto)
     {
         MyPhoto.MakeInvisible();
     }
     if (null != _parentGroup)
     {
         Point pos = e.GetPosition(_mainCanvas);
         if (false == HitTest(pos))
         {
             _parentGroup.HideSplitIcon(this);
         }
     }
 }
        private void OnMouseEnterHandler(object sender, MouseEventArgs e)
        {
            BitmapEffect = _mainCanvas.GlowEffect;

            if (null != MyPhoto)
            {
                MyPhoto.MakeVisible(this);
            }

            if (_mainCanvas.IsDebugVisible == true)
            {
                _mainCanvas.DebugPanelListBoxHeader = _fileName;
            }

            if (null != _parentGroup)
            {
                _parentGroup.ShowSplitIcon(this);
            }
        }