예제 #1
0
        private void AddSearchResultSingleViewModel(SearchItem item)
        {
            SearchResultSingleViewModel singleVM = new SearchResultSingleViewModel(m_searchSession, item);

            singleVM.SelectedRecordChanged += new EventHandler(singleVM_SelectedRecordChanged);
            m_DTSearchItem2SearchResultSingleViewModel.Add(item, singleVM);
        }
예제 #2
0
 private void ClearSingleViewModel(SearchResultSingleViewModel singleVM)
 {
     singleVM.SelectedRecordChanged -= new EventHandler(singleVM_SelectedRecordChanged);
     singleVM.UnInit();
 }