예제 #1
0
 public void UnRegister(string name)
 {
     if (_str_Module_Dic.ContainsKey(name))
     {
         BaseModule module = _str_Module_Dic[name];
         module.Release();
         _str_Module_Dic.Remove(name);
         module = null;
     }
 }
예제 #2
0
        //To be completed
        private void LoadModule(Type moduleType)
        {
            BaseModule bm = null;

            if (moduleType == typeof(ConfigModule))
            {
                bm = new ConfigModule();
            }

            if (bm != null)
            {
                bm.IsAutoResiger = true;
                bm.Load();
            }
        }
예제 #3
0
        //To be completed
        private void LoadModule(Type moduleType)
        {
            BaseModule bm = null;

            if (moduleType == typeof(ObjectsConfigModule))
            {
                bm = new ObjectsConfigModule();
            }
            else if (moduleType == typeof(AssemblyObjectsModule))
            {
                bm = new AssemblyObjectsModule();
            }
            else if (moduleType == typeof(BagModule))
            {
                bm = new BagModule();
            }


            if (bm != null)
            {
                bm.IsAutoResiger = true;
                bm.Load();
            }
        }
예제 #4
0
 public void Register(BaseModule module)
 {
     Register(module.GetType().ToString(), module);
 }
예제 #5
0
 public void UnRegister(BaseModule module)
 {
     UnRegister(module.GetType().ToString());
 }