/// <summary> /// Set data on the UI /// </summary> /// <param name="e"></param> private void SetScannerResultTreeView(A11yElement e) { this.List.AddRange(ScanListViewItemViewModel.GetScanListViewItemViewModels(e)); this.lvDetails.ItemsSource = null; // enable UI elements since Clear() disables them. this.btnShowAll.IsEnabled = true; UpdateTree(); }
/// <summary> /// Set data on the UI /// </summary> private void SetScannerResultTreeView(A11yElement e) { var context = new ScannerResultCustomListContext(UpdateTree, SwitchToServerLogin, ItemSelectedHandler, this.EcId); this.nonFrameworkListControl.SetControlContext(context); this.frameworkListControl.SetControlContext(context); _list.AddRange(ScanListViewItemViewModel.GetScanListViewItemViewModels(e)); // enable UI elements since Clear() disables them. this.btnShowAll.IsEnabled = true; this.ShowAllResults = false; UpdateTree(); }