예제 #1
0
        private void registroDeClientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCliente Formulario = new FrmCliente();

            bool Cargado = false;

            foreach (var item in this.MdiChildren)
            {
                if (item.Name == Formulario.Name)
                {
                    Cargado = true;
                }
            }

            if (!Cargado)
            {
                Formulario.MdiParent = this;
                Formulario.Show();
            }
        }
        private void registroDeClientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCliente Formulario = new FrmCliente();

            bool Cargado = false;
            foreach (var item in this.MdiChildren)
            {
                if (item.Name == Formulario.Name)
                {
                    Cargado = true;
                }
            }

            if (!Cargado)
            {
                Formulario.MdiParent = this;
                Formulario.Show();
            }
        }