private void Modificar() { try { var viewModel = (FamiliaMercaderiaViewModel)familiaMercaderiaViewModelBindingSource.Current; var frm = new MntFamiliaMercaderiaForm(viewModel, ViewModelList); frm.ShowDialog(); } catch (Exception ex) { MessageBox.Show(string.Format("Ocurrió un error al modificar, mensaje de error: {0}", ex.Message) , "Modificar", MessageBoxButtons.OK, MessageBoxIcon.Error); } }