コード例 #1
0
        private void BindingNavigatorAddNewItem_Click(object sender, EventArgs e)
        {
            var form = new FormSimulacoesCadastro();

            form.ShowDialog();
            AtualizaGrid();
        }
コード例 #2
0
        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();
        }