コード例 #1
0
        public static DIC_MyFirstDictionaryFilter CreateDefault(MainPageUrlBuilder url, DBDataContext db)
        {
            var filter = new DIC_MyFirstDictionaryFilter();
            var newUrl = url ?? new MainPageUrlBuilder();

            newUrl.SelectMode = "none";
            newUrl.ViewMode   = "none";
            filter.SetUrl(newUrl);
            filter.SetDB(db);
            return(filter);
        }
コード例 #2
0
        public static DIC_MyFirstDictionaryFilter CreateDefault(MainPageUrlBuilder url, DBDataContext db, bool showHistory)
        {
            var filter = new DIC_MyFirstDictionaryFilter();
            var newUrl = url != null?url.Clone() : new MainPageUrlBuilder();

            newUrl.ShowHistory = showHistory;
            newUrl.SelectMode  = "none";
            newUrl.ViewMode    = "none";
            filter.SetUrl(newUrl);
            filter.SetDB(db);
            filter.ShowHistory = showHistory;
            return(filter);
        }
コード例 #3
0
        public static DIC_MyFirstDictionaryFilter CreateDefault(MainPageUrlBuilder url, DBDataContext db, bool showHistory, List <MainPageUrlBuilder.FilterParameter> controlFilterParameters)
        {
            var filter = new DIC_MyFirstDictionaryFilter();
            var newUrl = url != null?url.Clone() : new MainPageUrlBuilder();

            newUrl.ShowHistory = showHistory;
            newUrl.SelectMode  = "none";
            newUrl.ViewMode    = "none";
            foreach (var item in controlFilterParameters)
            {
                newUrl.ControlFilterParameters.Add(item.Clone());
            }
            filter.SetUrl(newUrl);
            filter.SetDB(db);
            filter.ShowHistory = showHistory;
            return(filter);
        }