public AssetViewPanel() { m_menuBar = new AssetListMenuBar(); m_detailsBorder = new Border(); this.Children.Add(m_menuBar); m_menuBar.Add += new MenuButtonClickedDelegate(MenuBar_Add); m_menuBar.Delete += new MenuButtonClickedDelegate(MenuBar_Delete); this.Loaded += new RoutedEventHandler(AssetViewPanel_Loaded); m_detailsBorder.SizeChanged += new SizeChangedEventHandler(DetailsBorder_SizeChanged); m_menuBar.Refresh += new MenuButtonClickedDelegate(() => { RefreshAsync(); }); m_menuBar.PageFirst += new MenuButtonClickedDelegate(MenuBar_PageFirst); m_menuBar.PagePrevious += new MenuButtonClickedDelegate(MenuBar_PagePrevious); m_menuBar.PageNext += new MenuButtonClickedDelegate(MenuBar_PageNext); m_menuBar.PageLast += new MenuButtonClickedDelegate(MenuBar_PageLast); }
public AssetViewPanel() { m_menuBar = new AssetListMenuBar(); m_detailsBorder = new Border(); this.Children.Add(m_menuBar); m_menuBar.Add += MenuBar_Add; m_menuBar.Help += MenuBar_Help; this.Loaded += new RoutedEventHandler(AssetViewPanel_Loaded); m_detailsBorder.SizeChanged += new SizeChangedEventHandler(DetailsBorder_SizeChanged); m_menuBar.Refresh += () => { RefreshAsync(); }; m_menuBar.PageFirst += MenuBar_PageFirst; m_menuBar.PagePrevious += MenuBar_PagePrevious; m_menuBar.PageNext += MenuBar_PageNext; m_menuBar.PageLast += MenuBar_PageLast; }