Beispiel #1
0
        // ====================================================================
        // コンストラクター
        // ====================================================================

        // --------------------------------------------------------------------
        // メインコンストラクター
        // --------------------------------------------------------------------
        public TFoundSetter(ListContextInMemory listContextInMemory)
        {
            Debug.Assert(listContextInMemory.ChangeTracker.QueryTrackingBehavior == QueryTrackingBehavior.TrackAll, "TFoundSetter() bad QueryTrackingBehavior");
            _listContextInMemory = listContextInMemory;

            // MusicInfoContext は検索専用なので NoTracking にする
            _musicInfoContext = new MusicInfoContextDefault();
            _musicInfoContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;

            _categoryNames = DbCommon.SelectCategoryNames(_musicInfoContext.Categories);

            // スマートトラック判定用単語
            _offVocalWords  = YlConstants.SMART_TRACK_SEPARATOR + String.Join(YlConstants.SMART_TRACK_SEPARATOR, YlModel.Instance.EnvModel.YlSettings.OffVocalWords) + YlConstants.SMART_TRACK_SEPARATOR;
            _bothVocalWords = YlConstants.SMART_TRACK_SEPARATOR + String.Join(YlConstants.SMART_TRACK_SEPARATOR, YlModel.Instance.EnvModel.YlSettings.BothVocalWords) + YlConstants.SMART_TRACK_SEPARATOR;
        }
        // ====================================================================
        // コンストラクター
        // ====================================================================

        // --------------------------------------------------------------------
        // メインコンストラクター
        // --------------------------------------------------------------------
        public TFoundSetterAliasSpecify(ListContextInMemory listContextInMemory, String?specifiedProgramOrigin, String?specifiedSongOrigin)
            : base(listContextInMemory)
        {
            _specifiedProgramOrigin = specifiedProgramOrigin;
            _specifiedSongOrigin    = specifiedSongOrigin;
        }