private void btnNovoMedico_Click(object sender, EventArgs e) { frmCadastrarMedico form = new frmCadastrarMedico(); if (form.ShowDialog() == DialogResult.OK) { this.binding(); } }
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { frmCadastrarMedico form = new frmCadastrarMedico(); if (form.ShowDialog() == DialogResult.OK) { this.binding(); } }
private void btnAtualizar_Click(object sender, EventArgs e) { frmCadastrarMedico form = new frmCadastrarMedico(); form.Medico = (Medico)bsMedico.Current; if (form.ShowDialog() == DialogResult.OK) { this.binding(); } }