private void ButtonNota_Click(object sender, EventArgs e)
        {
            thread = new Thread(ConsultarColecaoNota);
            form1.ExecutarThread(thread);
            this.Activate();

            if (colecaoNota != null)
            {
                FormNotaLista formNotaLista = new FormNotaLista(colecaoNota);
                formNotaLista.ShowDialog(this);
                formNotaLista.Dispose();

                if (formNotaLista.DialogResult == DialogResult.Yes)
                {
                    infoNota = formNotaLista.SelecionadoNota;

                    FormNotaFiscal formNotaFiscal = new FormNotaFiscal(infoNota);
                    formNotaFiscal.ShowDialog(this);
                    formNotaFiscal.Dispose();
                }
            }
            else
            {
                FormNotaFiscal formNotaFiscal = new FormNotaFiscal(infoCliente);
                formNotaFiscal.ShowDialog(this);
                formNotaFiscal.Dispose();
            }
        }
Пример #2
0
        private void ButtonNota_Click(object sender, EventArgs e)
        {
            FormNotaFiscal formNotaFiscal = new FormNotaFiscal(infoCliente);

            formNotaFiscal.ShowDialog(this);
            formNotaFiscal.Dispose();
        }