Exemple #1
0
 public void Release()
 {
     if (State != EnumObjectState.Disabled)
     {
         State = EnumObjectState.Disabled;
         //TODO:
         if (registerMode == EnumRegistMode.AlradyRegister)
         {
             //TODO:注销
             registerMode = EnumRegistMode.AutoRegister;
         }
         OnRelease();
     }
 }
Exemple #2
0
 public void Load()
 {
     if (State != EnumObjectState.Initial)
     {
         return;
     }
     State = EnumObjectState.Loading;
     //TODO:
     if (registerMode == EnumRegistMode.AutoRegister)
     {
         // TODO:注册
         registerMode = EnumRegistMode.AlradyRegister;
     }
     OnLoad();
     State = EnumObjectState.Ready;
 }