private void btnVisualizar_Click(object sender, EventArgs e)
        {
            NotaFiscal notaFiscal = new NotaFiscal();

            notaFiscal.Id = (int)dataGridViewNotasFiscais.CurrentRow.Cells[0].Value;
            notaFiscal.NumeroNotaFiscal = (int)dataGridViewNotasFiscais.CurrentRow.Cells[1].Value;
            notaFiscal.Serie            = (int)dataGridViewNotasFiscais.CurrentRow.Cells[2].Value;
            notaFiscal.NomeCliente      = dataGridViewNotasFiscais.CurrentRow.Cells[3].Value.ToString();
            notaFiscal.EstadoOrigem     = dataGridViewNotasFiscais.CurrentRow.Cells[4].Value.ToString();
            notaFiscal.EstadoDestino    = dataGridViewNotasFiscais.CurrentRow.Cells[5].Value.ToString();

            FormNotaFiscal formNotaFiscal = new FormNotaFiscal(notaFiscal, service);

            formNotaFiscal.Show();
        }
        private void btnEmitirNotaFiscal_Click(object sender, EventArgs e)
        {
            FormNotaFiscal formNotaFiscal = new FormNotaFiscal(new NotaFiscal(), service);

            formNotaFiscal.Show();
        }
Exemple #3
0
        private void emitirNotaFiscalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormNotaFiscal formNotaFiscal = new FormNotaFiscal(new NotaFiscal(), service);

            formNotaFiscal.Show();
        }