private void button_Click(object sender, RoutedEventArgs e) { DBconn conn = new DBconn(); string name, newName; name = textBox1.Text; newName = textBox.Text; conn.editUsername(name, newName); this.Close(); }