private void btnAlterar_Click(object sender, EventArgs e) { if (Convert.ToInt16(dtgPesquisa.Rows[dtgPesquisa.CurrentCell.RowIndex].Cells[0].Value) > 0) { frm_cadastarUsuario._pesquisa = Convert.ToInt16(dtgPesquisa.Rows[dtgPesquisa.CurrentCell.RowIndex].Cells[0].Value); this.Close(); } frm_cadastarUsuario cad = new frm_cadastarUsuario(); cad.ShowDialog(); }
private void btnCadastroUser_Click(object sender, EventArgs e) { frm_cadastarUsuario user = new frm_cadastarUsuario(); user.ShowDialog(); }