void SetFilter() { var archiveFilter = new XArchiveFilter() { StartDate = ArchiveFirstDate < DateTime.Now.AddHours(-1) ? DateTime.Now.AddHours(-1) : ArchiveFirstDate, EndDate = DateTime.Now }; var archiveFilterViewModel = new ArchiveFilterViewModel(archiveFilter); ArchiveFilter = archiveFilterViewModel.GetModel(); StartDate = archiveFilterViewModel.StartDateTime; EndDate = archiveFilterViewModel.EndDateTime; }
void SetFilter(ArchiveFilterViewModel archiveFilterViewModel) { ArchiveFilter = archiveFilterViewModel.GetModel(); StartDate = archiveFilterViewModel.StartDateTime; EndDate = archiveFilterViewModel.EndDateTime; }