private void btnEditarAdm_Click(object sender, EventArgs e) { Form f = new EditarDadosForms.frmEditarAdm(); f.Show(); this.Close(); }
private void btnConfirmar_Click(object sender, EventArgs e) { if (txtSenha.Text == metodos.SelectAdmPasswordByLoginName(frmLogin.SetLoginName).Replace(" ", "")) { Confirmacao = "ok"; Form f = new EditarDadosForms.frmEditarAdm(); f.ShowDialog(); this.Close(); } //SelectAdmPasswordByName(frmLogin.SetLoginName); }