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