private void isSessionDisabled() { saveData = (SaveData)StructMethods.LoadData(); if (saveData.isSessionDisabled == 1) { int numCoins = CoinMethods.getCoins(Environment.UserName); //if(ExeMethods.payForExe(CoinMethods.getCoins(Environment.UserName), numCoinsRequiredToPlay, saveData.sessionLimit) == true) { //SqlMethods.writeToPointsLog("has stopped paying for games. " + numCoins + " Coins."); timer_1_min.Enabled = false; button_payForGames.Enabled = false; button_StartGames.Enabled = true; sessionHasPaid = false; } } }
private void Form1_Load(object sender, EventArgs e) { //test SqlMethods.writeToPointsLog("has logged in."); //string testenc = EncryptionMethods.EncryptString("9999","2bad4you"); //MessageBox.Show(testenc); saveData.sessionLimit = 30; label_userName.Text = Environment.UserName; saveData = (SaveData)StructMethods.LoadData(); numCoinsRequiredToPlay = saveData.numCoinsRequired; sessionLimitArchive = saveData.sessionLimit; this.FormClosing += new FormClosingEventHandler(Form1_FormClosing); LockOwnAccount(); Form konnect = new Konnect(); konnect.Show(); }
private void Password_Load(object sender, EventArgs e) { saveData = (SaveData)StructMethods.LoadData(); maskedTextBox1.KeyDown += new KeyEventHandler(maskedTextBox1_KeyDown); }