private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { frmCadastrarPaciente form = new frmCadastrarPaciente(); if (form.ShowDialog() == DialogResult.OK) { this.binding(); } }
private void btnAtualizar_Click(object sender, EventArgs e) { frmCadastrarPaciente form = new frmCadastrarPaciente(); form.objeto = (Paciente)bsPaciente.Current; if (form.ShowDialog() == DialogResult.OK) { this.binding(); } }