Ejemplo n.º 1
0
        public void Handle(IndexUpdated message)
        {
            BeginRefreshIndexes(server.OpenSession());

            if (message.IsRemoved)
            {
                ActiveItem = null;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Save the Search index settings to the settings file
        /// </summary>
        /// <param name="menuNode">XML-node for the search index settings</param>
        public void Save(XmlNode indexNode)
        {
            string xpath;

            xpath = "./status";
            SettingsHelper.SetSettingValue(xpath, indexNode, Status.ToString());

            xpath = "./indexUpdated";
            SettingsHelper.SetSettingValue(xpath, indexNode, IndexUpdated.ToString());

            xpath = "./updateMethod";
            SettingsHelper.SetSettingValue(xpath, indexNode, GetUpdateMethod());
        }
Ejemplo n.º 3
0
        public void Handle(IndexUpdated message)
        {
            //IndexViewModel index = message.Index;

            //if (index.Database == Database)
            //{
            //    if (message.IsRemoved)
            //    {
            //        AllItems.Remove(index);
            //        Items.Remove(index);
            //    }
            //    else
            //    {
            //        AllItems.Add(index);
            //        Items.Add(index);
            //    }
            //}
        }