public void CopyTo(ref CustomEpgTabInfo dest)
        {
            dest.TabName             = TabName;
            dest.ViewMode            = ViewMode;
            dest.NeedTimeOnlyBasic   = NeedTimeOnlyBasic;
            dest.NeedTimeOnlyWeek    = NeedTimeOnlyWeek;
            dest.StartTimeWeek       = StartTimeWeek;
            dest.ViewServiceList     = ViewServiceList.ToList();
            dest.ViewContentKindList = ViewContentKindList.ToList();
            dest.SearchMode          = SearchMode;

            dest.SearchKey.aimaiFlag     = SearchKey.aimaiFlag;
            dest.SearchKey.andKey        = SearchKey.andKey;
            dest.SearchKey.audioList     = SearchKey.audioList.ToList();
            dest.SearchKey.contentList   = SearchKey.contentList.ToList();
            dest.SearchKey.dateList      = SearchKey.dateList.ToList();
            dest.SearchKey.freeCAFlag    = SearchKey.freeCAFlag;
            dest.SearchKey.notContetFlag = SearchKey.notContetFlag;
            dest.SearchKey.notDateFlag   = SearchKey.notDateFlag;
            dest.SearchKey.notKey        = SearchKey.notKey;
            dest.SearchKey.regExpFlag    = SearchKey.regExpFlag;
            dest.SearchKey.serviceList   = SearchKey.serviceList.ToList();
            dest.SearchKey.titleOnlyFlag = SearchKey.titleOnlyFlag;
            dest.SearchKey.videoList     = SearchKey.videoList.ToList();
        }
Exemple #2
0
        public CustomEpgTabInfo DeepClone()
        {
            var other = (CustomEpgTabInfo)MemberwiseClone();

            other.ViewServiceList     = ViewServiceList.ToList();
            other.ViewContentKindList = ViewContentKindList.ToList();
            other.SearchKey           = SearchKey.DeepClone();
            return(other);
        }
Exemple #3
0
        public EpgSearchKeyInfo GetSearchKeyReloadEpg()
        {
            EpgSearchKeyInfo key = SearchKey.DeepClone();

            key.serviceList = ViewServiceList.Select(id => (long)id).ToList();
            if (SearchGenreNoSyncView == false)
            {
                key.contentList   = ViewContentList.DeepClone();
                key.notContetFlag = (byte)(ViewNotContentFlag == true ? 1 : 0);
            }
            return(key);
        }