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; }
public BookViewModelBase() { GetTodayDate(); Criteria = new IncomingBookCriteriaGet(); GetCommonCriteria(); ResetDate(); RefreshDocuments(); ManageObjectLifetime = false; PropertyChanged += OnIncomingViewModelPropertyChanged; ViewAttached += OnIncomingViewModelViewAttached; }
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; } }
private void Populate() { Criteria = new IncomingBookCriteriaGet(); ManageObjectLifetime = false; }