Пример #1
0
        private void empresasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frm_empresa frm = new frm_empresa(false);

            frm.MdiParent = this;
            frm.Show();
        }
Пример #2
0
        private void toolStripButton_add_Click(object sender, EventArgs e)
        {
            DialogResult res = MessageBox.Show("Deseja mesmo cadastrar uma nova empresa?", "Midas - Controle Financeiro", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (res == DialogResult.Yes)
            {
                //frmIndex frmp = new frmIndex(user);
                //Form_autenticaForne frm = new Form_autenticaForne();
                frm_empresa frm = new frm_empresa(true);
                frm.MdiParent = this.MdiParent;
                frm.Show();
                this.Hide();
            }
            else
            {
            }
        }