コード例 #1
0
        public void RefreshTranslation()
        {
            _isRefreshingTranslations = true;

            var dateType  = DateType;
            var fastDate  = FastDate;
            var fullText  = Criteria.FullText;
            var startDate = Criteria.StartDate;
            var endDate   = Criteria.EndDate;

            FastDateOptionsFacade.Instance.RefreshDictionary();
            Criteria           = new IncomingBookCriteriaGet();
            Criteria.FullText  = fullText;
            Criteria.StartDate = startDate;
            Criteria.EndDate   = endDate;

            DisplayName = "IncomingBookDisplayName".GetUiTranslation();
            ResetHeaderMessage();

            var view = GetView() as IRefreshTranslation;

            if (view != null)
            {
                view.RefreshTranslation();
            }

            DateType = dateType;
            FastDate = fastDate;

            ActiveItem.RefreshTranslation();

            _isRefreshingTranslations = false;
        }
コード例 #2
0
        public BookViewModelBase()
        {
            GetTodayDate();

            Criteria = new IncomingBookCriteriaGet();
            GetCommonCriteria();
            ResetDate();

            RefreshDocuments();

            ManageObjectLifetime = false;

            PropertyChanged += OnIncomingViewModelPropertyChanged;
            ViewAttached    += OnIncomingViewModelViewAttached;
        }
コード例 #3
0
        private void StoreRefreshData()
        {
            _refreshDateTime = DateTime.Now;
            _refreshCriteria = new IncomingBookCriteriaGet();
            var criteria = Criteria as IncomingBookCriteriaGet;

            if (criteria != null)
            {
                _refreshCriteria.FullText             = criteria.FullText;
                _refreshCriteria.ArchiveLocation      = criteria.ArchiveLocation;
                _refreshCriteria.StartDate            = criteria.StartDate;
                _refreshCriteria.EndDate              = criteria.EndDate;
                _refreshCriteria.SelectedDateTypeName = criteria.SelectedDateTypeName;
            }
        }
コード例 #4
0
        private void Populate()
        {
            Criteria = new IncomingBookCriteriaGet();

            ManageObjectLifetime = false;
        }