예제 #1
0
        private void btnStatus_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            foreach (Form frm in Application.OpenForms)
            {
                if (frm.GetType() == typeof(RealTimeStatusForm))
                {
                    frm.Activate();
                    frm.BringToFront();
                    return;
                }
            }

            RealTimeStatusForm realTimeStatusForm = new RealTimeStatusForm();

            realTimeStatusForm.MdiParent   = this;
            realTimeStatusForm.WindowState = FormWindowState.Maximized;
            realTimeStatusForm.Show();
        }