private void button2_Click(object sender, EventArgs e) { if( serviceGet.checkAdminPass(creTextBox1.Text, StaticClass.storeId)) { if(creTextBox2.Text == creTextBox3.Text) { Services.get_GUI get_GUI = new get_GUI(); get_GUI.UpdateAdminPass(StaticClass.storeId, creTextBox2.Text); } } this.Dispose(); }