public FilesystemSelectCriteria(FilesystemSelectCriteria other) : base(other) { }
public IList<Filesystem> GetFileSystems(FilesystemSelectCriteria criteria) { return _adapter.GetFileSystems(criteria); }
/// <summary> /// Load the FileSystems for the partition based on the filters specified in the filter panel. /// </summary> /// <remarks> /// This method only reloads and binds the list bind to the internal grid. <seealso cref="UpdateUI()"/> should be called /// to explicit update the list in the grid. /// <para> /// This is intentionally so that the list can be reloaded so that it is available to other controls during postback. In /// some cases we may not want to refresh the list if there's no change. Calling <seealso cref="UpdateUI()"/> will /// give performance hit as the data will be transfered back to the browser. /// /// </para> /// </remarks> public void LoadFileSystems() { FilesystemSelectCriteria criteria = new FilesystemSelectCriteria(); if (String.IsNullOrEmpty(DescriptionFilter.Text) == false) { QueryHelper.SetGuiStringCondition(criteria.Description, SearchHelper.TrailingWildCard(DescriptionFilter.Text)); } if (TiersDropDownList.SelectedIndex >= 1) /* 0 = "All" */ criteria.FilesystemTierEnum.EqualTo(Tiers[TiersDropDownList.SelectedIndex - 1]); FileSystemsGridView1.FileSystems = _theController.GetFileSystems(criteria); FileSystemsGridView1.RefreshCurrentPage(); }
protected override void OnInit(EventArgs e) { base.OnInit(e); var theController = new FileSystemsConfigurationController(); var criteria = new FilesystemSelectCriteria(); criteria.FilesystemTierEnum.SortAsc(0); criteria.Description.SortAsc(1); FileSystems = theController.GetFileSystems(criteria); TheGrid = FSGridView; GridPagerTop.InitializeGridPager(SR.GridPagerFileSystemSingleItem, SR.GridPagerFileSystemMultipleItems, TheGrid, () => FileSystems.Count, ImageServerConstants.GridViewPagerPosition.Top); Pager = GridPagerTop; GridPagerTop.Reset(); // Set up the grid if (Height != Unit.Empty) ContainerTable.Height = _height; DataBind(); }
public FilesystemSelectCriteria(FilesystemSelectCriteria other) : base(other) {}