private IUISubWnd GetSubWnd(MentorshipSubWndType wndType) { foreach (IUISubWnd wnd in m_SubWndList) { if (wnd.GetWndType() == (int)wndType) { return(wnd); } } return(null); }
private void ShowSubWnd(MentorshipSubWndType wndType) { foreach (IUISubWnd wnd in m_SubWndList) { if (wnd.GetWndType() == (int)wndType) { wnd.SetVisible(true); } else { wnd.SetVisible(false); } } m_CurrentWndType = wndType; }