private void BindingNavigatorAddNewItem_Click(object sender, EventArgs e) { var form = new FormSimulacoesCadastro(); form.ShowDialog(); AtualizaGrid(); }
private void ToolStripButtonEditar_Click(object sender, EventArgs e) { var form = new FormSimulacoesCadastro(); var simulacao = projetoFinalDataSet.Simulacoes[viewSimulacoesBindingSource.Position]; form.Editar(simulacao.SimulacaoID); form.ShowDialog(); AtualizaGrid(); }