public GUDsViewModel() { RefreshCommand = new RelayCommand(OnRefresh); EditFilterCommand = new RelayCommand(OnEditFilter); Filter = new GUDFilter(); Initialize(); }
void OnEditFilter() { var filterViewModel = new GUDFilterViewModel(Filter); if (DialogService.ShowModalWindow(filterViewModel)) { Filter = filterViewModel.Filter; Initialize(); } }