Beispiel #1
0
        /// <summary>
        /// Load main menu
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void NewMenu_Load(object sender, EventArgs e)
        {
            if (GetSecuritySettings.LogoutInactivity != 0)
            {
                //idleTimeStart();
                IdleTimeStart start = new IdleTimeStart();
                start.StartTimer(this);
            }

            GetGameSettingsCrazyBout GameSettingsCrazyBout = new GetGameSettingsCrazyBout();
            GetGameSettingJailbreak  GameSettingsJailBreak = new GetGameSettingJailbreak();
            GetGameSettingsMayaMoney GameSettingsMayaMoney = new GetGameSettingsMayaMoney();
            GetPlayerSettings        PlayerSettings        = new GetPlayerSettings();//Get the player Settings.

            //SystemConfig = new GetSystemConfig();

            //WindowsDefaultLocation Loc = new WindowsDefaultLocation();
            this.Location = new Point(WindowsDefaultLocation.PointA, WindowsDefaultLocation.PointB);

            ActivatePermission(); //Only show the allow permission per staff
        }
Beispiel #2
0
        private void imgBtnSaveSystemSettings_Click(object sender, EventArgs e)
        {
            //setSettingToFalse();

            clearErrorP();
            var result = false;

            Cursor.Current = Cursors.WaitCursor;
            if (IsClientAccessControl && clientAccessControl1.IsModified)
            {
                result = clientAccessControl1.SaveClientAccessControl(clientAccessControl1.dgClientAccess);
            }
            else if (IsSecuritySettings && securitySettings1.IsModified)
            {                //Lets save the changes
                result = securitySettings1.SaveSettings();
            }
            else if (IsNDSettings && ndSettings1.IsModified)
            {
                result = ndSettings1.SaveSettings();
            }
            else if (IsGameSettings && gameSettings1.IsModified)
            {
                bool vresult = gameSettings1.ValidateInput();
                if (vresult)
                {
                    result = gameSettings1.SaveSettings();
                }
            }
            else if (IsCrazyBoutGameSettings && gameSettingCrazyBout1.IsModified)
            {
                result = gameSettingCrazyBout1.SaveSettings();
            }
            else if (IsJailBreakGameSettings && gameSettingJailBreak1.IsModified)
            {
                result = gameSettingJailBreak1.SaveSettings();
            }
            else if (IsMayaMoneyGameSettings && gameSettingMayaMoney1.IsModified)
            {
                result = gameSettingMayaMoney1.SaveSettings();
            }
            else if (m_isWildBallGameSettings && gameSettingWildBall1.IsModified)
            {
                result = gameSettingWildBall1.SaveSettings();
            }
            else if (m_isSpirit76GameSettings && gameSettingSpirit761.IsModified)
            {
                result = gameSettingSpirit761.SaveSettings();
            }
            else if (m_isTimeBombGameSettings && gameSettingTimeBomb1.IsModified)
            {
                result = gameSettingTimeBomb1.SaveSettings();
            }

            if (GetSecuritySettings.LogoutInactivity != 0)
            {
                IdleTimeStart start = new IdleTimeStart();
                start.StartTimer(this);
            }

            Cursor.Current = Cursors.Default;

            if (result)
            {
                picBxSaved.Visible = true;
                picBxSaved.BringToFront();
            }
        }