Exemple #1
0
 public static void CreateStaticInstance()
 {
     if (moduleLog == null)
     {
         ModuleLog.moduleLog = new ModuleLog();
     }
 }
Exemple #2
0
 public static void CreateStaticInstance()
 {
     if (moduleLog == null)
     {
         ModuleLog.moduleLog = new ModuleLog();
     }
 }
        public void Remove(IModule module)
        {
            ModuleObject moduleObject;

            for (int i = 0; i < list.Count; i++)
            {
                moduleObject = (ModuleObject)list[i];
                if (moduleObject.Instance != null)
                {
                    if (moduleObject.Instance.Equals(module))
                    {
                        ModuleLog.Write("unloading module:" + moduleObject.Name, this, "Remove", ModuleLog.LogType.DEBUG);
                        list.Remove(moduleObject);
                        moduleObject = null;
                    }
                }
            }
        }