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 Button1_Click(object sender, EventArgs e) { Form konnect = new Konnect(); konnect.Show(); }