public IEnumerable <RequestEntity> OpenRequstListDialog(RequestListFilterEntity filter) { _logger.Debug("OpenRequstListDialog."); _logger.Debug("Params: Filter = {0}.", filter.ToStateString()); using (RequestListViewModel viewModel = CreateRequestListViewModel(filter, true)) { if (_dialogMgr.ShowModal(viewModel) == DialogResult.OK) { return(viewModel.SelectRequestList); } else { return(new List <RequestEntity>()); } } }
public RequestListFilterEntity OpenRequestListFilterEditDialog(RequestListFilterEntity filter) { _logger.Debug("OpenRequestListFilterEditDialog."); _logger.Debug("Params: Filter = {0}.", filter.ToStateString()); using (RequestFilterViewModel viewModel = CreateRequestFilterViewModel(filter)) { if (_dialogMgr.ShowModal(viewModel) == DialogResult.OK) { return(viewModel.Filter); } else { return(null); } } }
public void OpenRequestListPage(RequestListFilterEntity filter) { _logger.Debug("OpenRequestListPage."); _logger.Debug("Params: Filter = {0}.", filter.ToStateString()); RequestListViewModel viewModel = null; try { viewModel = CreateRequestListViewModel(filter, false); ShowRequestListViewModel(viewModel); } catch (Exception ex) { InvokerHlp.WithExceptionSuppress(() => { _requestListViewModelList.Remove(viewModel.Ident); }, _logger); throw ex; } }