internal void UpdateNeedle()
 {
     if (DatabaseConnection)
     {
         _needle = DashboardControl.Needle.DatabaseOn;
         if (ServerRunning)
         {
             _needle = DashboardControl.Needle.ServerOn;
             if (SwayTCP.ClientCount > 0)
             {
                 _needle = DashboardControl.Needle.ClientsIn;
                 if (GetAllLoggedInClients().Count > 0)
                 {
                     _needle = DashboardControl.Needle.Menu;
                     if (GetPlayingClients().Count > 0)
                     {
                         _needle = DashboardControl.Needle.GameInProgress;
                         if (GetAllManagers().Count > 0)
                         {
                             _needle = DashboardControl.Needle.Managers;
                         }
                         if (GetAllClients().Count > 20)
                         {
                             _needle = DashboardControl.Needle.Clients20;
                             if (GetAllClients().Count > 50)
                             {
                                 _needle = DashboardControl.Needle.Clients50;
                             }
                         }
                     }
                 }
             }
         }
     }
     else
     {
         _needle = 0;
     }
     serverInterface.SetNeedle(_needle);
 }
        internal void CheckGamingAccess()
        {
            int count = 0;

            for (int i = 0; i < SwayTCP.Clients.Length; i++)
            {
                if (SwayTCP.Clients[i]._player._isGaming != false)
                {
                    count++;
                    break;
                }
            }
            if (_needle < DashboardControl.Needle.GameInProgress && count > 0)
            {
                _needle = DashboardControl.Needle.GameInProgress;
                serverInterface.SetNeedle(_needle);
            }
            else if (_needle == DashboardControl.Needle.GameInProgress && count < 1)
            {
                _needle = DashboardControl.Needle.Menu;
                serverInterface.SetNeedle(_needle);
            }
        }
 public void SetNeedle(DashboardControl.Needle needle)
 {
     dashboardControl.NeedleAngle(needle);
 }