/// <summary>
 /// Adds the contents of another <see cref="PluginCollection">PluginCollection</see> to the end of the collection.
 /// </summary>
 /// <param name="value">A <see cref="PluginCollection">PluginCollection</see> containing the objects to add to the collection. </param>
 public void AddRange(PluginCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add((IPlugin)value.List[i]);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds the contents of another <see cref="PluginCollection">PluginCollection</see> to the end of the collection.
 /// </summary>
 /// <param name="value">A <see cref="PluginCollection">PluginCollection</see> containing the objects to add to the collection. </param>
 public void AddRange(PluginCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add((IPlugin)value.List[i]);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PluginCollection">PluginCollection</see> class containing the elements of the specified source collection.
 /// </summary>
 /// <param name="value">A <see cref="PluginCollection">PluginCollection</see> with which to initialize the collection.</param>
 public PluginCollection(PluginCollection value)
 {
     this.AddRange(value);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PluginCollectionEnumerator">PluginCollectionEnumerator</see> class referencing the specified <see cref="PluginCollection">PluginCollection</see> object.
 /// </summary>
 /// <param name="mappings">The <see cref="PluginCollection">PluginCollection</see> to enumerate.</param>
 public PluginCollectionEnumerator(PluginCollection mappings)
 {
     _temp = ((IEnumerable)(mappings));
     _enumerator = _temp.GetEnumerator();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PluginCollection">PluginCollection</see> class containing the elements of the specified source collection.
 /// </summary>
 /// <param name="value">A <see cref="PluginCollection">PluginCollection</see> with which to initialize the collection.</param>
 public PluginCollection(PluginCollection value)
 {
     this.AddRange(value);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PluginCollectionEnumerator">PluginCollectionEnumerator</see> class referencing the specified <see cref="PluginCollection">PluginCollection</see> object.
 /// </summary>
 /// <param name="mappings">The <see cref="PluginCollection">PluginCollection</see> to enumerate.</param>
 public PluginCollectionEnumerator(PluginCollection mappings)
 {
     _temp       = ((IEnumerable)(mappings));
     _enumerator = _temp.GetEnumerator();
 }
Exemplo n.º 7
0
        /// <summary>
        /// Constructor of the kernel.
        /// </summary>
        public Kernel()
        {
            /* Instantiate forms */
            pluginsForm = new PluginManagerForm();
            aboutForm = new AboutForm();
            
            /* Instatiate timers */
            //timer = new Tibia.Util.Timer(3000, false);
            //timer.OnExecute += new Tibia.Util.Timer.TimerExecution(timer_OnExecute);

            /* Plug-in related */
            plugins = new PluginCollection();

            /* Skin related */
            //skin = new Skin(Settings.Default.Skin);
        }