//打开指定的页面Wnd private void ShowSubWnd(SystemSettingSubWndType wndType) { if (wndType == SystemSettingSubWndType.WND_CONTROL_DEFAULT || wndType == SystemSettingSubWndType.WND_CONTROL_OB) { if (StageManager.Instance.CurPermissionState == EStage_PermissionState.ESPS_OB && StageManager.Instance.CurSubState == EStage_SubState.ESSS_WAR) { wndType = SystemSettingSubWndType.WND_CONTROL_OB; } else { wndType = SystemSettingSubWndType.WND_CONTROL_DEFAULT; } } foreach (var wnd in m_subWndList) { if (wnd.GetWndType() == (int)wndType) { wnd.SetVisible(true); } else { wnd.SetVisible(false); } } m_currentWndType = wndType; }
//获取指定的页面Wnd private IUISubWnd GetSubWnd(SystemSettingSubWndType wndType) { foreach (var wnd in m_subWndList) { if (wnd.GetWndType() == (int)wndType) { return(wnd); } } return(null); }