Example #1
0
        /// <summary>
        /// Makes the Provider known to the Manager, so it can display the Manialink Pages of it.
        /// </summary>
        /// <param name="provider">The Manialink Provider.</param>
        public void RegisterProvider(IManialinkProvider provider)
        {
            if (providers.Contains(provider))
            {
                return;
            }

            providers.Add(provider);
        }
Example #2
0
 /// <summary>
 /// Tells the Manager to stop displaying the Manialink Pages of the Provider.
 /// </summary>
 /// <param name="provider">The Manialink Provider.</param>
 public void UnregisterProvider(IManialinkProvider provider)
 {
     providers.Remove(provider);
 }