コード例 #1
0
 /// <summary>
 /// The create view model.
 /// </summary>
 /// <param name="searchNewViewModel">
 /// The search new view model.
 /// </param>
 /// <returns>
 /// The <see cref="LayoutListViewModel"/>.
 /// </returns>
 public LayoutListViewModel CreateViewModel(IRefreshableSearchList searchNewViewModel)
 {
     var result = LayoutListVM.CreateExport();
     result.Value.SearchViewModel = searchNewViewModel;
     return result.Value;
 }
コード例 #2
0
 /// <summary>
 /// The create view model.
 /// </summary>
 /// <param name="searchNewViewModel">
 /// The search new view model.
 /// </param>
 /// <returns>
 /// The <see cref="FilterListViewModel"/>.
 /// </returns>
 public FilterListViewModel CreateViewModel(IRefreshableSearchList searchNewViewModel)
 {
     var result = FilterListVm.CreateExport();
     result.Value.SearchViewModel = searchNewViewModel;
     result.Value.QuickFilterToolbarVM = searchNewViewModel != null ? searchNewViewModel.QuickFilterToolbarVM : null;
     return result.Value;
 }