Exemplo n.º 1
0
        private void vizualizareUtilizatoriToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frmVizualizareUtilizatori = new frmVizualizareUtilizatori();

            frmVizualizareUtilizatori.MdiParent = this;

            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(frmVizualizareUtilizatori))
                {
                    form.WindowState = FormWindowState.Normal;
                    form.Activate();
                    return;
                }
            }

            frmVizualizareUtilizatori.Show();
        }
Exemplo n.º 2
0
        private void btnVizualizareUtilizatori_Click(object sender, EventArgs e)
        {
            Form form = new frmVizualizareUtilizatori();

            form.MdiParent = this.ParentForm;

            foreach (Form forms in Application.OpenForms)
            {
                if (forms.GetType() == typeof(frmVizualizareUtilizatori))
                {
                    forms.WindowState = FormWindowState.Normal;
                    forms.Activate();
                    return;
                }
            }

            form.Show();

            Close();
        }