/// <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 LoadMayaMoneySettings() { GetGameSettingsMayaMoney ggsmm = new GetGameSettingsMayaMoney(); comboBoxMaxCard.SelectedItem = GetGameSettingsMayaMoney.maxcards.ToString(); comboBoxMaxBetLevel.SelectedItem = GetGameSettingsMayaMoney.maxbetlevel.ToString(); numCallSpeedMin.Value = GetGameSettingsMayaMoney.callspeed_min; numCallSpeedMax.Value = GetGameSettingsMayaMoney.callspeed_max; if (GetGameSettingsMayaMoney.autocall == "T") { chkbxAutoCall.Checked = true; } else { chkbxAutoCall.Checked = false; } if (GetGameSettingsMayaMoney.hidecardserialnum == "T") { chkbxHideCardSerialNumber.Checked = true; } else { chkbxHideCardSerialNumber.Checked = false; } if (GetGameSettingsMayaMoney.denom_1 == "T") { chkbxDenom1.Checked = true; } else { chkbxDenom1.Checked = false; } if (GetGameSettingsMayaMoney.denom_5 == "T") { chkbxDenom5.Checked = true; } else { chkbxDenom5.Checked = false; } if (GetGameSettingsMayaMoney.denom_10 == "T") { chkbxDenom10.Checked = true; } else { chkbxDenom10.Checked = false; } if (GetGameSettingsMayaMoney.denom_25 == "T") { chkbxDenom25.Checked = true; } else { chkbxDenom25.Checked = false; } if (GetGameSettingsMayaMoney.denom_50 == "T") { chkbxDenom50.Checked = true; } else { chkbxDenom50.Checked = false; } if (GetGameSettingsMayaMoney.denom_100 == "T") { chkbxDenom1d.Checked = true; } else { chkbxDenom1d.Checked = false; } if (GetGameSettingsMayaMoney.denom_200 == "T") { chkbxDenom2d.Checked = true; } else { chkbxDenom2d.Checked = false; } if (GetGameSettingsMayaMoney.denom_500 == "T") { chkbxDenom5d.Checked = true; } else { chkbxDenom5d.Checked = false; } return(true); }
private bool SaveMayaMoneyGameSettings() { //etGameSettingsCrazyBout x = new GetGameSettingsMayaMoney();//Let us use the set instead of the static variable. Does it execute the class again? GetGameSettingsMayaMoney x = new GetGameSettingsMayaMoney(); if (x.MaxCards != int.Parse(comboBoxMaxCard.SelectedItem.ToString())) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Maya Money 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, "Maya Money Setting - Max Bet Level", x.MaxBetLevel.ToString(), comboBoxMaxBetLevel.SelectedItem.ToString()); x.MaxBetLevel = int.Parse(comboBoxMaxBetLevel.SelectedItem.ToString()); } if (x.CallSpeed_Min != (int)numCallSpeedMin.Value) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Maya Money Setting - Call Speed min.", x.CallSpeed_Min.ToString(), numCallSpeedMin.Value.ToString()); x.CallSpeed_Min = (int)numCallSpeedMin.Value; } if (x.CallSpeed_Max != (int)numCallSpeedMax.Value) { WriteLog.WriteLogUpdate("", CurrentUserLoggedIn.username, "UPDATE", GetCurrentMacID.MacAddress, "Maya Money 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, "Maya Money 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, "Maya Money 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, "Maya Money 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, "Maya Money 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, "Maya Money 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, "Maya Money 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, "Maya Money 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, "Maya Money 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, "Maya Money 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, "Maya Money 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, "Maya Money Setting - Hide card serial number", x.HideCardSerialNum.ToString(), UIValue); x.HideCardSerialNum = (chkbxHideCardSerialNumber.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.CallSpeed_Min = (int)numCallSpeedMin.Value; //x.CallSpeed_Max = (int)numCallSpeedMax.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"; SetGameSettingsMayaMoney set = new SetGameSettingsMayaMoney(); //SetGameSettingsCrazyBout set = new SetGameSettingsCrazyBout(); return(true); }