//BOTÃO INSERIR
        private void btnInserir_Click(object sender, EventArgs e)
        {
            Form form = new VTaxaCadastrar(null);

            form.ShowDialog();

            btnPesquisarTaxa_Click(null, null);
        }
        //BOTÃO EDITAR
        private void btnEditar_Click(object sender, EventArgs e)
        {
            if (dtPesquisarTaxa.SelectedRows != null &&
                dtPesquisarTaxa.SelectedRows.Count > 0)
            {
                MTaxaEmbarque taxa = new MTaxaEmbarque();

                taxa.id = int.Parse(dtPesquisarTaxa.SelectedRows[0].
                                    Cells["idDataGridViewTextBoxColumn"].Value.ToString());

                Form v = new VTaxaCadastrar(taxa);
                v.ShowDialog();

                btnPesquisarTaxa_Click(null, null);
            }
        }
Example #3
0
        private void btnInserirTaxaEmbarque_Click(object sender, EventArgs e)
        {
            VTaxaCadastrar form = new VTaxaCadastrar(null);

            form.ShowDialog();
        }