コード例 #1
0
        /// <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();
        }
コード例 #2
0
        /// <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();
        }