示例#1
0
        private void faturasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frmCliente = this.MdiChildren.FirstOrDefault(i => i is FrmNotaFiscal);

            frmCliente = new FrmNotaFiscal() { MdiParent = this }; // test
            frmCliente.Focus();
        }
示例#2
0
        private void tsbGerarNotaFiscal_Click(object sender, EventArgs e)
        {
            try
            {
                Form frmCliente = this.MdiChildren.FirstOrDefault(i => i is FrmNotaFiscal);

                frmCliente = new FrmNotaFiscal() { MdiParent = this };
                frmCliente.Focus();
            }
            catch (Exception)
            {
                MessageBox.Show("Falha na aplicação!", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#3
0
        private void tsbGerarNotaFiscal_Click(object sender, EventArgs e)
        {
            Form frmCliente = this.MdiChildren.FirstOrDefault(i => i is FrmNotaFiscal);

            frmCliente = new FrmNotaFiscal() { MdiParent = this }; // test
            frmCliente.Focus();
        }
示例#4
0
        private void faturasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                Form frmCliente = this.MdiChildren.FirstOrDefault(i => i is FrmNotaFiscal);

                if (frmCliente == null)
                {
                    frmCliente = new FrmNotaFiscal() { MdiParent = this };
                }
                frmCliente.Focus();
            }
            catch (Exception)
            {
                MessageBox.Show("Falha na aplicação!", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }