Ejemplo n.º 1
0
 /// <summary>
 /// Adds a module to the current <see cref="Modules"/> collection.
 /// </summary>
 /// <param name="module">The module to add to the collection.</param>
 public bool AddModule(Module module)
 {
     try
     {
         Module[] modules = new Module[Modules.Length + 1];
         Modules.CopyTo(modules, 0);
         modules[modules.Length] = module;
         Modules = modules;
         return(true);
     }
     catch { return(false); }
 }