private void button3_Click(object sender, EventArgs e) { sqlFunctions sql = new sqlFunctions(); if (sql.setPassword(toolStripStatusLabel2.Text, textBox5.Text) == true) { } else { } }
private void button2_Click(object sender, EventArgs e) { string appPath = Path.GetDirectoryName(Application.ExecutablePath); System.IO.StreamReader file = new System.IO.StreamReader(appPath + "/lastuser.txt"); string user; user = file.ReadLine(); file.Close(); sqlFunctions sql = new sqlFunctions(); if (sql.setPassword(user, textBox2.Text) == true) { this.Close(); } else { } }