Exemplo n.º 1
0
        void OpenUpgradeWindow(bool with_effect_ = false)
        {
            m_cur_right_type             = ENUM_RIGHT_WINDOW_TYPE.E_UPGRADE;
            this.m_detail_window.Visible = false;
            UIOfficerInfo data = this.GetOfficerData(this.m_currentPageType, this.m_choose_officer_id);

            this.m_upgrade_window.Refresh(data.m_data, PoliceUILogicAssist.GetOfficerServerInfo(data.m_data), with_effect_);
            this.m_upgrade_window.Visible = true;
        }
Exemplo n.º 2
0
        void OpenDetailWindow()
        {
            m_cur_right_type = ENUM_RIGHT_WINDOW_TYPE.E_DETAIL;
            this.m_upgrade_window.Visible = false;
            UIOfficerInfo data = this.GetOfficerData(this.m_currentPageType, this.m_choose_officer_id);

            this.m_detail_window.Refresh(data.m_data, PoliceUILogicAssist.GetOfficerServerInfo(data.m_data));
            this.m_detail_window.Visible = true;
        }
Exemplo n.º 3
0
        private void AddUILogic()
        {
            m_currentPageType        = ENUM_PAGE_TYPE.E_INVALID;
            this.m_choose_officer_id = 0;
            m_last_choose_officer_id = -1;
            m_cur_right_type         = ENUM_RIGHT_WINDOW_TYPE.E_UPGRADE;

            this.m_page_toggles[0].Checked = false;
            this.m_page_toggles[0].Checked = true;


            RefreshRedPoints();
        }
Exemplo n.º 4
0
 void RefreshRightWindow(ENUM_RIGHT_WINDOW_TYPE type_)
 {
     if (ENUM_RIGHT_WINDOW_TYPE.E_UPGRADE == type_)
     {
         OpenUpgradeWindow();
     }
     else if (ENUM_RIGHT_WINDOW_TYPE.E_DETAIL == type_)
     {
         OpenDetailWindow();
     }
     else
     {
         CloseRightWindow();
     }
 }