コード例 #1
0
        private void OnReportsClick(object sender, EventArgs e)
        {
            if (!m_frmReportPrinting.Visible)
            {
                m_frmReportPrinting.Show();
            }

            if (this.m_emMainFormUI == EMainFormUIType.emUnknown)
            {
                m_frmReportPrinting.OnCurModuleChanged(null);
            }
        }
コード例 #2
0
        private void Header_MenuItemClick(string text, int menuIndex, int pageIndex)
        {
            switch (menuIndex)
            {
            case 0:
                ItemGenData();
                Aside.SelectPage(pageIndex);
                break;

            case 1:
                ItemRegister();
                Aside.SelectPage(pageIndex);
                break;

            case 2:
                ItemDrawArrange();
                Aside.SelectPage(pageIndex);
                break;

            case 3:
                ItemSchedule();
                Aside.SelectPage(pageIndex);
                break;

            case 4:
                ItemMatchData();
                Aside.SelectPage(pageIndex);
                break;

            case 5:
                ReportsOpen();
                m_frmReportPrinting.Show();
                Aside.SelectPage(pageIndex);
                break;

            case 6:
                ItemMedal();
                Aside.SelectPage(pageIndex);
                break;

            case 7:
                DatabaseBackup();
                Aside.SelectPage(pageIndex);
                break;

            case 8:
                frmOfficialCommunication.Visible = true;
                Aside.SelectPage(pageIndex);
                break;

            case 9:
                SetNetwork();
                Aside.SelectPage(pageIndex);
                break;

            case 10:
                ItemRecord();
                Aside.SelectPage(pageIndex);
                break;

            case 11:
                UIStyle style = (UIStyle)pageIndex;
                StyleManager.Style = style;
                break;
            }
        }