Beispiel #1
0
        private void ribbonButton5_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
            {
                if (f is Guru)
                {
                    //MessageBox.Show("Form2 is already opened.");
                    return;
                }
            }

            CloseMdiForm();
            _guru           = new Guru();
            _guru.MdiParent = this;
            _guru.Show();
        }
        private void ribbonButton5_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
            {
                if (f is Guru)
                {
                    //MessageBox.Show("Form2 is already opened.");
                    return;
                }
            }

            CloseMdiForm();
            _guru = new Guru();
            _guru.MdiParent = this;
            _guru.Show();
        }