/// <summary>Constructor.</summary> /// <param name="sidebarView">The sidebar.</param> public MethodListHeightController(SidebarView sidebarView) { // Setup initial conditions. this.sidebarView = sidebarView; methodList = sidebarView.MethodList; divSidebarContent = sidebarView.Container.Children(CssSelectors.SidebarContent); events = Common.Events; // Wire up events. events.SelectedClassChanged += OnSelectedClassChanged; // Finish up. HideList(null); }
/// <summary>Constructor.</summary> public SidebarView(): base(jQuery.Select(CssSelectors.Sidebar)) { // Create the list-tree. rootList = new ListTreeView(jQuery.Select(CssSelectors.SidebarRootList)); rootList.Slide.Duration = SlideDuration; // Create the test-list. methodList = new MethodListView(jQuery.Select(CssSelectors.MethodList)); // Create controllers. backController = new ListTreeBackController( rootList, jQuery.Select(CssSelectors.SidebarToolbar), jQuery.Select(CssSelectors.BackMask)); methodListHeightController = new MethodListHeightController(this); // Wire up events. GlobalEvents.WindowResizeComplete += OnSizeChanged; GlobalEvents.PanelResizeComplete += OnSizeChanged; // Finish up. UpdateLayout(); }