コード例 #1
0
ファイル: LibraryFilter.cs プロジェクト: NHxD/NHxD
        public LibraryFilter(Configuration.ConfigLibraryList libraryListSettings)
        {
            LibraryListSettings = libraryListSettings;

            text        = "";
            filters     = libraryListSettings.Filter.Filters;
            dateFilters = libraryListSettings.Filter.DateFilters;
            afterDate   = libraryListSettings.Filter.AfterDate;
            beforeDate  = libraryListSettings.Filter.BeforeDate;
            sortType    = libraryListSettings.SortType;
            sortOrder   = libraryListSettings.SortOrder;
        }
コード例 #2
0
ファイル: LibraryFilter.cs プロジェクト: NHxD/NHxD
        public static LibraryDateFilters ToggleFlag(this LibraryDateFilters flags, LibraryDateFilters flag)
        {
            if (flags.HasFlag(flag))
            {
                flags &= ~flag;
            }
            else
            {
                flags |= flag;
            }

            return(flags);
        }