protected void UpdateMode()
 {
     if (InheritLoadTaskManager._iModeReq == InheritLoadTaskManager.InheritTaskManagerMode.InheritTaskManagerMode_BEF)
     {
         return;
     }
     InheritLoadTaskManager.InheritTaskManagerMode iModeReq = InheritLoadTaskManager._iModeReq;
     if (iModeReq != InheritLoadTaskManager.InheritTaskManagerMode.InheritTaskManagerMode_ST)
     {
         if (iModeReq == InheritLoadTaskManager.InheritTaskManagerMode.Privilege)
         {
             if (InheritLoadTaskManager._clsTasks.Open(this._clsPrivilege) < 0)
             {
                 return;
             }
         }
     }
     else if (InheritLoadTaskManager._clsTasks.Open(this._clsLoadSelect) < 0)
     {
         return;
     }
     InheritLoadTaskManager._iMode    = InheritLoadTaskManager._iModeReq;
     InheritLoadTaskManager._iModeReq = InheritLoadTaskManager.InheritTaskManagerMode.InheritTaskManagerMode_BEF;
 }
 public static void ReqMode(InheritLoadTaskManager.InheritTaskManagerMode iMode)
 {
     InheritLoadTaskManager._iModeReq = iMode;
 }
 private void Start()
 {
     InheritLoadTaskManager._iMode = (InheritLoadTaskManager._iModeReq = InheritLoadTaskManager.InheritTaskManagerMode.Privilege);
     InheritLoadTaskManager._clsTasks.Init();
 }