public void NavigationWorkPanel(string tag) { try { WorkHost.PanelContent = null; if (!bMVCOpen) { WorkHost.Visibility = Visibility.Visible; } //WebPartHost.Visibility = Visibility.Collapsed; //WebPartHost.Stop(); UserControl workitem = null; string titel = ""; switch (tag) { case "NewsManager": workitem = new WebParts.Views.NewsManager(); titel = "新闻管理"; break; case "SystemLog": workitem = new SMT.SAAS.Platform.Xamls.SystemLogger(); titel = " 系统日志"; break; case "CustomMenusSet": { titel = "菜单列表"; if (_mainMenu == null) { _mainMenu = new Xamls.MainPagePart.CustomMenusSet(); _mainMenu.ShortCutClick += new EventHandler <OnShortCutClickEventArgs>(menu_ShortCutClick); workitem = _mainMenu; } else { workitem = _mainMenu; } break; } default: break; } WorkHost.Navigation(workitem, titel); Common.AppContext.IsMenuOpen = _fromMenu; } catch (Exception ex) { string strmsg = "点击菜单时发生错误,原因:" + ex.ToString(); SMT.SAAS.Main.CurrentContext.AppContext.SystemMessage(strmsg); } finally { hideLoadingBar(); HtmlPage.Window.Invoke("loadCompletedSL", "Invoke"); } }
public void NavigationWorkPanel(string tag) { try { WorkHost.PanelContent = null; WorkHost.Visibility = Visibility.Visible; WebPartHost.Visibility = Visibility.Collapsed; WebPartHost.Stop(); UserControl workitem = null; string titel = ""; switch (tag) { case "NewsManager": workitem = new WebParts.Views.NewsManager(); titel = "新闻管理"; break; case "SystemLog": workitem = new SMT.SAAS.Platform.Xamls.SystemLogger(); titel = " 系统日志"; break; case "CustomMenusSet": { titel = "菜单列表"; if (_mainMenu == null) { _mainMenu = new Xamls.MainPagePart.CustomMenusSet(); _mainMenu.MenuItemMouseDown += new EventHandler <MouseButtonEventArgs>(menu_MenuItemMouseDown); _mainMenu.ShortCutClick += new EventHandler <OnShortCutClickEventArgs>(menu_ShortCutClick); _mainMenu.MenuItemMouseMove += new EventHandler <MouseEventArgs>(menu_MenuItemMouseMove); workitem = _mainMenu; } else { workitem = _mainMenu; } break; } default: break; } WorkHost.Navigation(workitem, titel); Common.AppContext.IsMenuOpen = _fromMenu; } catch (Exception ex) { string strmsg = "点击菜单时发生错误,原因:" + ex.ToString(); SMT.SAAS.Main.CurrentContext.AppContext.SystemMessage(strmsg); } }
public void NavigationWorkPanel(string tag) { try { WorkHost.PanelContent = null; if (!bMVCOpen) { WorkHost.Visibility = Visibility.Visible; } //WebPartHost.Visibility = Visibility.Collapsed; //WebPartHost.Stop(); UserControl workitem = null; string titel = ""; switch (tag) { case "NewsManager": workitem = new WebParts.Views.NewsManager(); titel = "新闻管理"; break; case "SystemLog": workitem = new SMT.SAAS.Platform.Xamls.SystemLogger(); titel = " 系统日志"; break; case "CustomMenusSet": { titel = "菜单列表"; if (_mainMenu == null) { _mainMenu = new Xamls.MainPagePart.MenusPanel(); _mainMenu.ShortCutClick += new EventHandler<OnShortCutClickEventArgs>(menu_ShortCutClick); workitem = _mainMenu; } else { workitem = _mainMenu; } break; } default: break; } WorkHost.Navigation(workitem, titel); Common.AppContext.IsMenuOpen = _fromMenu; } catch (Exception ex) { string strmsg = "点击菜单时发生错误,原因:" + ex.ToString(); SMT.SAAS.Main.CurrentContext.AppContext.SystemMessage(strmsg); } finally { hideLoadingBar(); HtmlPage.Window.Invoke("loadCompletedSL", "Invoke"); } }
public void NavigationWorkPanel(string tag) { try { WorkHost.PanelContent = null; WorkHost.Visibility = Visibility.Visible; WebPartHost.Visibility = Visibility.Collapsed; WebPartHost.Stop(); UserControl workitem = null; string titel = ""; switch (tag) { case "NewsManager": workitem = new WebParts.Views.NewsManager(); titel = "新闻管理"; break; case "SystemLog": workitem = new SMT.SAAS.Platform.Xamls.SystemLogger(); titel = " 系统日志"; break; case "CustomMenusSet": { titel = "菜单列表"; if (_mainMenu == null) { _mainMenu = new Xamls.MainPagePart.CustomMenusSet(); _mainMenu.MenuItemMouseDown += new EventHandler<MouseButtonEventArgs>(menu_MenuItemMouseDown); _mainMenu.ShortCutClick += new EventHandler<OnShortCutClickEventArgs>(menu_ShortCutClick); _mainMenu.MenuItemMouseMove += new EventHandler<MouseEventArgs>(menu_MenuItemMouseMove); workitem = _mainMenu; } else { workitem = _mainMenu; } break; } default: break; } WorkHost.Navigation(workitem, titel); Common.AppContext.IsMenuOpen = _fromMenu; } catch (Exception ex) { string strmsg = "点击菜单时发生错误,原因:" + ex.ToString(); SMT.SAAS.Main.CurrentContext.AppContext.SystemMessage(strmsg); } }