Пример #1
0
        private void ItemRecord()
        {
            m_ModuleRecord.GetModuleUI.Visible = true;

            m_EventRecord(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsRecord));
            m_FlagsRecord.Reset();

            if (m_frmReportPrinting != null)
            {
                m_frmReportPrinting.OnCurModuleChanged("M_B");
            }
        }
Пример #2
0
        private void ItemMedal()
        {
            m_ModuleRankMedal.GetModuleUI.Visible = true;

            m_EventRankMedal(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsRankMedal));
            m_FlagsRankMedal.Reset();

            if (m_frmReportPrinting != null)
            {
                m_frmReportPrinting.OnCurModuleChanged("M_M");
            }
        }
Пример #3
0
        private void ItemMatchData()
        {
            m_ModulePluginMgr.GetModuleUI.Visible = true;

            m_EventPluginMgr(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsPluginMgr));
            m_FlagsPluginMgr.Reset();

            if (m_frmReportPrinting != null)
            {
                m_frmReportPrinting.OnCurModuleChanged("M_E");
            }
        }
Пример #4
0
        private void ItemSchedule()
        {
            m_ModuleMatchSchedule.GetModuleUI.Visible = true;

            m_EventMatchSchedule(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsMatchSchedule));
            m_FlagsMatchSchedule.Reset();

            if (m_frmReportPrinting != null)
            {
                m_frmReportPrinting.OnCurModuleChanged("M_S");
            }
        }
Пример #5
0
        private void ItemDrawArrange()
        {
            m_ModuleDrawArrange.GetModuleUI.Visible = true;

            m_EventDrawArrange(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsDrawArrange));
            m_FlagsDrawArrange.Reset();

            if (m_frmReportPrinting != null)
            {
                m_frmReportPrinting.OnCurModuleChanged("M_D");
            }
        }
Пример #6
0
        private void ItemGenData()
        {
            m_ModuleGeneralData.GetModuleUI.Visible = true;

            m_EventGeneralData(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsGeneralData));
            m_FlagsGeneralData.Reset();

            if (m_frmReportPrinting != null)
            {
                m_frmReportPrinting.OnCurModuleChanged("M_G");
            }
        }
Пример #7
0
        private void CurrentModuleChanged()
        {
            if (btnItemGenData.Visible)
            {
                if (this.m_emMainFormUI == EMainFormUIType.emWndGeneralData)
                {
                    btnItemGenData.ForeColor = System.Drawing.Color.Red;
                    m_ModuleGeneralData.GetModuleUI.Visible = true;

                    m_EventGeneralData(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsGeneralData));
                    m_FlagsGeneralData.Reset();

                    if (m_frmReportPrinting != null)
                    {
                        m_frmReportPrinting.OnCurModuleChanged("M_G");
                    }
                }
                else
                {
                    btnItemGenData.ForeColor = System.Drawing.Color.White;
                    m_ModuleGeneralData.GetModuleUI.Visible = false;
                }
            }
            if (btnItemRegister.Visible)
            {
                if (this.m_emMainFormUI == EMainFormUIType.emWndRegister)
                {
                    btnItemRegister.ForeColor            = System.Drawing.Color.Red;
                    m_ModuleRegister.GetModuleUI.Visible = true;

                    m_EventRegister(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsRegister));
                    m_FlagsRegister.Reset();

                    if (m_frmReportPrinting != null)
                    {
                        m_frmReportPrinting.OnCurModuleChanged("M_R");
                    }
                }
                else
                {
                    btnItemRegister.ForeColor            = System.Drawing.Color.White;
                    m_ModuleRegister.GetModuleUI.Visible = false;
                }
            }
            if (btnItemDrawArrange.Visible)
            {
                if (this.m_emMainFormUI == EMainFormUIType.emWndDrawArrange)
                {
                    btnItemDrawArrange.ForeColor            = System.Drawing.Color.Red;
                    m_ModuleDrawArrange.GetModuleUI.Visible = true;

                    m_EventDrawArrange(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsDrawArrange));
                    m_FlagsDrawArrange.Reset();

                    if (m_frmReportPrinting != null)
                    {
                        m_frmReportPrinting.OnCurModuleChanged("M_D");
                    }
                }
                else
                {
                    btnItemDrawArrange.ForeColor            = System.Drawing.Color.White;
                    m_ModuleDrawArrange.GetModuleUI.Visible = false;
                }
            }
            if (btnItemSchedule.Visible)
            {
                if (this.m_emMainFormUI == EMainFormUIType.emWndMatchSchedule)
                {
                    btnItemSchedule.ForeColor = System.Drawing.Color.Red;
                    m_ModuleMatchSchedule.GetModuleUI.Visible = true;

                    m_EventMatchSchedule(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsMatchSchedule));
                    m_FlagsMatchSchedule.Reset();

                    if (m_frmReportPrinting != null)
                    {
                        m_frmReportPrinting.OnCurModuleChanged("M_S");
                    }
                }
                else
                {
                    btnItemSchedule.ForeColor = System.Drawing.Color.White;
                    m_ModuleMatchSchedule.GetModuleUI.Visible = false;
                }
            }
            if (btnItemMatchData.Visible)
            {
                if (this.m_emMainFormUI == EMainFormUIType.emWndPluginMgr)
                {
                    btnItemMatchData.ForeColor            = System.Drawing.Color.Red;
                    m_ModulePluginMgr.GetModuleUI.Visible = true;

                    m_EventPluginMgr(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsPluginMgr));
                    m_FlagsPluginMgr.Reset();

                    if (m_frmReportPrinting != null)
                    {
                        m_frmReportPrinting.OnCurModuleChanged("M_E");
                    }
                }
                else
                {
                    btnItemMatchData.ForeColor            = System.Drawing.Color.White;
                    m_ModulePluginMgr.GetModuleUI.Visible = false;
                }
            }
            if (btnItemMedal.Visible)
            {
                if (this.m_emMainFormUI == EMainFormUIType.emWndRankMedal)
                {
                    btnItemMedal.ForeColor = System.Drawing.Color.Red;
                    m_ModuleRankMedal.GetModuleUI.Visible = true;

                    m_EventRankMedal(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsRankMedal));
                    m_FlagsRankMedal.Reset();

                    if (m_frmReportPrinting != null)
                    {
                        m_frmReportPrinting.OnCurModuleChanged("M_M");
                    }
                }
                else
                {
                    btnItemMedal.ForeColor = System.Drawing.Color.White;
                    m_ModuleRankMedal.GetModuleUI.Visible = false;
                }
            }
            if (btnItemRecord.Visible)
            {
                if (this.m_emMainFormUI == EMainFormUIType.emWndRecord)
                {
                    btnItemRecord.ForeColor            = System.Drawing.Color.Red;
                    m_ModuleRecord.GetModuleUI.Visible = true;

                    m_EventRecord(this, new OVRFrame2ModuleEventArgs(OVRFrame2ModuleEventType.emUpdateData, m_FlagsRecord));
                    m_FlagsRecord.Reset();

                    if (m_frmReportPrinting != null)
                    {
                        m_frmReportPrinting.OnCurModuleChanged("M_B");
                    }
                }
                else
                {
                    btnItemRecord.ForeColor            = System.Drawing.Color.White;
                    m_ModuleRecord.GetModuleUI.Visible = false;
                }
            }
        }