Exemplo n.º 1
0
 /// <summary>
 /// Loads the plugin order data from the permanent store.
 /// </summary>
 private void LoadPluginOrder()
 {
     Trace.TraceInformation("Loading Plugin Order...");
     Trace.Indent();
     m_oclOrderedPlugins = new ThreadSafeObservableList <Plugin>();
     if (LogSerializer != null)
     {
         foreach (string strPlugin in LogSerializer.LoadPluginOrder())
         {
             Plugin plgPlugin = ManagedPluginRegistry.GetPlugin(strPlugin);
             Trace.TraceInformation("Loading {0} (IsNull={1})", strPlugin, (plgPlugin == null));
             if ((plgPlugin != null) && !m_oclOrderedPlugins.Contains(plgPlugin))
             {
                 m_oclOrderedPlugins.Add(plgPlugin);
             }
         }
     }
     Trace.Unindent();
 }
		/// <summary>
		/// Loads the plugin order data from the permanent store.
		/// </summary>
		private void LoadPluginOrder()
		{
			Trace.TraceInformation("Loading Plugin Order...");
			Trace.Indent();
			m_oclOrderedPlugins = new ThreadSafeObservableList<Plugin>();
            if (LogSerializer != null)
			    foreach (string strPlugin in LogSerializer.LoadPluginOrder())
			    {
				    Plugin plgPlugin = ManagedPluginRegistry.GetPlugin(strPlugin);
				    Trace.TraceInformation("Loading {0} (IsNull={1})", strPlugin, (plgPlugin == null));
				    if ((plgPlugin != null) && !m_oclOrderedPlugins.Contains(plgPlugin))
						m_oclOrderedPlugins.Add(plgPlugin);
			    }
			Trace.Unindent();
		}
 /// <summary>
 /// Determines if the given mod is hidden.
 /// </summary>
 /// <param name="p_modMod">The mod for which it is to be determined if it is registered.</param>
 /// <returns><c>true</c> if the given mod is registered;
 /// <c>false</c> otherwise.</returns>
 public bool IsModHidden(IMod p_modMod)
 {
     return(!m_oclRegisteredMods.Contains(p_modMod, ModComparer.Filename));
 }