public static void InvokeStopCoreModule(CoreModule cm)
        {
            Assembly _Assemblies = Assembly.GetAssembly(cm.GetType());
            Type _Type = cm.GetType();

            // Get the desired method we want from the target type.
            MethodInfo _MethodInfo = null;
            try
            {
                _MethodInfo = _Type.GetMethod("Stop");
            }
            catch (Exception ex)
            {
                return;
            }
            _MethodInfo.Invoke(cm, null);
        }
 public static bool AddCoreModule(string name, CoreModule m)
 {
     if (ModuleHandler._CoreModules.ContainsKey(name))
     {
         return false;
     }
     else
     {
         ModuleHandler._CoreModules.Add(name, m);
         return true;
     }
 }