Exemplo n.º 1
0
 /// <summary>
 /// Loads the data from the Install Log file.
 /// </summary>
 private void LoadPluginLog()
 {
     m_ostActivePlugins.Clear();
     if (LogSerializer != null)
     {
         foreach (string strPlugin in LogSerializer.LoadPluginLog())
         {
             m_ostActivePlugins.Add(ManagedPluginRegistry.GetPlugin(strPlugin));
         }
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Loads the data from the Install Log file.
        /// </summary>
        private void LoadPluginLog()
        {
            if (m_ostActivePlugins != null)
            {
                m_ostActivePlugins.Clear();
            }
            else
            {
                m_ostActivePlugins = new ObservableSet <Plugin>(PluginComparer.Filename);
            }

            if (LogSerializer != null)
            {
                foreach (string strPlugin in LogSerializer.LoadPluginLog())
                {
                    if (!String.IsNullOrEmpty(strPlugin))
                    {
                        m_ostActivePlugins.Add(ManagedPluginRegistry.GetPlugin(strPlugin));
                    }
                }
            }
        }