public void Initialize(IList <INavigateGroup> m_GroupList, IList <INavigateModule> m_ModuleList) { this.navigationProxy = new NavigationProxy(); this.navigationProxy.GroupList = m_GroupList; this.navigationProxy.ModuleList = m_ModuleList; this.InitializeNavigation(); }
public void InitializeShell(IList <INavigateGroup> m_GroupList, IList <INavigateModule> m_ModuleList) { #region 初始化设置 try { this.Icon = (System.Drawing.Icon)XContext.ShellResource.GetMainIcon(); } catch { } #endregion #region 问本显示 string name = "AgileEAS.NET SOA 中间件平台"; try { name = XContext.ShellResource.GetApplicationTitle(); } catch { } this.Text = name; #endregion //关闭打开的模块。 XContext.AllowClose = true; try { for (int i = m_AddIns.Count - 1; i >= 0; i--) { EAS.Application.Instance.CloseModule(m_AddIns[i]); } } finally { XContext.AllowClose = false; } //参数。 this.navigationProxy = new NavigationProxy(); this.navigationProxy.GroupList = m_GroupList; this.navigationProxy.ModuleList = m_ModuleList; //导航。 if (string.Compare(XContext.Account.LoginID, "Guest", true) == 0) { this.InitializeNavigationGuest(); } else { this.InitializeNavigationPublic(); } //打开起始页 EAS.Application.Instance.OpenModule(new Resources().GetStartModule()); }