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; }
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; }
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(); }
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(); } }