/// <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 }
private bool LoadJailBreakSettings() { GetGameSettingJailbreak ggsjb = new GetGameSettingJailbreak(); comboBoxMaxCard.SelectedItem = GetGameSettingJailbreak.maxcards.ToString(); comboBoxMaxBetLevel.SelectedItem = GetGameSettingJailbreak.maxbetlevel.ToString(); numCallSpeed.Value = GetGameSettingJailbreak.callspeed; if (GetGameSettingJailbreak.autocall == "T") { chkbxAutoCall.Checked = true; } else { chkbxAutoCall.Checked = false; } if (GetGameSettingJailbreak.hidecardserialnum == "T") { chkbxHideCardSerialNumber.Checked = true; } else { chkbxHideCardSerialNumber.Checked = false; } if (GetGameSettingJailbreak.singleofferbonus == "T") { chkbxSingleOfferBonus.Checked = true; } else { chkbxSingleOfferBonus.Checked = false; } if (GetGameSettingJailbreak.denom_1 == "T") { chkbxDenom1.Checked = true; } else { chkbxDenom1.Checked = false; } if (GetGameSettingJailbreak.denom_5 == "T") { chkbxDenom5.Checked = true; } else { chkbxDenom5.Checked = false; } if (GetGameSettingJailbreak.denom_10 == "T") { chkbxDenom10.Checked = true; } else { chkbxDenom10.Checked = false; } if (GetGameSettingJailbreak.denom_25 == "T") { chkbxDenom25.Checked = true; } else { chkbxDenom25.Checked = false; } if (GetGameSettingJailbreak.denom_50 == "T") { chkbxDenom50.Checked = true; } else { chkbxDenom50.Checked = false; } if (GetGameSettingJailbreak.denom_100 == "T") { chkbxDenom1d.Checked = true; } else { chkbxDenom1d.Checked = false; } if (GetGameSettingJailbreak.denom_200 == "T") { chkbxDenom2d.Checked = true; } else { chkbxDenom2d.Checked = false; } if (GetGameSettingJailbreak.denom_500 == "T") { chkbxDenom5d.Checked = true; } else { chkbxDenom5d.Checked = false; } return(true); }
private bool SaveJailBreakGameSettings() { GetGameSettingJailbreak x = new GetGameSettingJailbreak();//Let us use the set instead of the static variable. Does it execute the class again? if (x.MaxCards != int.Parse(comboBoxMaxCard.SelectedItem.ToString())) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Max Cards", x.MaxCards.ToString(), comboBoxMaxCard.SelectedItem.ToString()); x.MaxCards = int.Parse(comboBoxMaxCard.SelectedItem.ToString()); } if (x.MaxBetLevel != int.Parse(comboBoxMaxBetLevel.SelectedItem.ToString())) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Max Bet Level", x.MaxBetLevel.ToString(), comboBoxMaxBetLevel.SelectedItem.ToString()); x.MaxBetLevel = int.Parse(comboBoxMaxBetLevel.SelectedItem.ToString()); } if (x.CallSpeed != (int)numCallSpeed.Value) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Call Speed.", x.CallSpeed.ToString(), numCallSpeed.Value.ToString()); x.CallSpeed = (int)numCallSpeed.Value; } //if (x.CallSpeed_Max != (int)numCallSpeedMax.Value) //{ // WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Call Speed max.", x.CallSpeed_Max.ToString(), numCallSpeedMax.Value.ToString()); // x.CallSpeed_Max = (int)numCallSpeedMax.Value; //} string UIValue; UIValue = (chkbxAutoCall.Checked == true) ? "T" : "F"; if (x.AutoCall != UIValue) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Auto Call", x.AutoCall.ToString(), UIValue); x.AutoCall = UIValue;//(chkbxAutoCall.Checked == true) ? "T" : "F"; } UIValue = (chkbxDenom1.Checked == true) ? "T" : "F"; if (x.Denom_1 != UIValue) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Denom 1 cent", x.Denom_1.ToString(), UIValue); x.Denom_1 = (chkbxDenom1.Checked == true) ? "T" : "F"; } UIValue = (chkbxDenom5.Checked == true) ? "T" : "F"; if (x.Denom_5 != UIValue) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Denom 5 cent", x.Denom_5.ToString(), UIValue); x.Denom_5 = (chkbxDenom5.Checked == true) ? "T" : "F"; } UIValue = (chkbxDenom10.Checked == true) ? "T" : "F"; if (x.Denom_10 != UIValue) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Denom 10 cent", x.Denom_10.ToString(), UIValue); x.Denom_10 = (chkbxDenom10.Checked == true) ? "T" : "F"; } UIValue = (chkbxDenom25.Checked == true) ? "T" : "F"; if (x.Denom_25 != UIValue) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Denom 25 cent", x.Denom_25.ToString(), UIValue); x.Denom_25 = (chkbxDenom25.Checked == true) ? "T" : "F"; } UIValue = (chkbxDenom50.Checked == true) ? "T" : "F"; if (x.Denom_50 != UIValue) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Denom 50 cent", x.Denom_50.ToString(), UIValue); x.Denom_50 = (chkbxDenom50.Checked == true) ? "T" : "F"; } UIValue = (chkbxDenom1d.Checked == true) ? "T" : "F"; if (x.Denom_100 != UIValue) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Denom 1 dollar", x.Denom_100.ToString(), UIValue); x.Denom_100 = (chkbxDenom1d.Checked == true) ? "T" : "F"; } UIValue = (chkbxDenom2d.Checked == true) ? "T" : "F"; if (x.Denom_200 != UIValue) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Denom 2 dollars", x.Denom_200.ToString(), UIValue); x.Denom_200 = (chkbxDenom2d.Checked == true) ? "T" : "F"; } UIValue = (chkbxDenom5d.Checked == true) ? "T" : "F"; if (x.Denom_500 != UIValue) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Denom 5 dollars", x.Denom_500.ToString(), UIValue); x.Denom_500 = (chkbxDenom5d.Checked == true) ? "T" : "F"; } //UIValue = (chkbxSingleOfferBonus.Checked == true) ? "T" : "F"; //if (x.SingleOfferBonus != UIValue) //{ // WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Single Offer Bonus", x.SingleOfferBonus.ToString(), UIValue); // x.SingleOfferBonus = (chkbxSingleOfferBonus.Checked == true) ? "T" : "F"; //} UIValue = (chkbxHideCardSerialNumber.Checked == true) ? "T" : "F"; if (x.HideCardSerialNum != UIValue) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Hide card serial number", x.HideCardSerialNum.ToString(), UIValue); x.HideCardSerialNum = (chkbxHideCardSerialNumber.Checked == true) ? "T" : "F"; } UIValue = (chkbxSingleOfferBonus.Checked == true) ? "T" : "F"; if (x.SingleOfferBonus != UIValue) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Jailbreak Setting - Single offer bonus", x.HideCardSerialNum.ToString(), UIValue); x.SingleOfferBonus = (chkbxSingleOfferBonus.Checked == true) ? "T" : "F"; } //x.MaxCards = (int)numMaxCards.Value; //x.MaxBetLevel = (int)numMaxBetLevel.Value; //x.MaxPatterns = (int)numMaxPattern.Value; //x.MaxCalls = (int)numMaxCalls.Value; //x.MaxPattern_Bonus = (int)numMaxPatternBonus.Value; //x.MaxCalls_Bonus = (int)numMaxCallsBonus.Value; //x.CallSpeed = (int)numCallSpeed.Value; //x.AutoCall = (chkbxAutoCall.Checked == true) ? "T" : "F"; //x.AutoPlay = (chkbxAutoPlay.Checked == true) ? "T" : "F"; //x.Denom_1 = (chkbxDenom1.Checked == true) ? "T" : "F"; //x.Denom_5 = (chkbxDenom5.Checked == true) ? "T" : "F"; //x.Denom_10 = (chkbxDenom10.Checked == true) ? "T" : "F"; //x.Denom_25 = (chkbxDenom25.Checked == true) ? "T" : "F"; //x.Denom_50 = (chkbxDenom50.Checked == true) ? "T" : "F"; //x.Denom_100 = (chkbxDenom1d.Checked == true) ? "T" : "F"; //x.Denom_200 = (chkbxDenom2d.Checked == true) ? "T" : "F"; //x.Denom_500 = (chkbxDenom5d.Checked == true) ? "T" : "F"; //x.HideCardSerialNum = (chkbxHideCardSerialNumber.Checked == true) ? "T" : "F"; SetGameSettingsJailbreak set = new SetGameSettingsJailbreak(); //SetGameSettingsCrazyBout set = new SetGameSettingsCrazyBout(); return(true); }