Пример #1
0
 private void SetRangeItems(IEnumerable <IDScanItem> dScanItems)
 {
     CurrentRangeItems.Clear();
     foreach (var curItem in dScanItems)
     {
         CurrentRangeItems.Add(new DScanItemViewModel(curItem));
     }
 }
Пример #2
0
        public void Initialize()
        {
            _stepCount         = 1;
            _areAnomaliesAdded = false;
            var color = Resources["ContainerBackground"] as  Color?;

            LstRangeItems.Background = Brushes.TransparentBrush;//color == null ? Brushes.TransparentBrush : new SolidColorBrush(color.Value);
            LstRangeItems.FontWeight = FontWeights.Normal;

            CurrentShips.Clear();
            CurrentRangeItems.Clear();

            _dScanFinder.Init();

            LblTarget.Visibility     = Visibility.Collapsed;
            LstRangeItems.Visibility = Visibility.Collapsed;
            LstTargets.Visibility    = Visibility.Visible;

            TxtStatus.Clear();
            AppendTextLine(_stepCount++ +
                           ": Deselect \"Use active overview settings\" in DScan, press \"Scan\", click into the result list and press ctrl+a, ctrl+c");

            DScanFinderOnIsActiveChanged(_dScanFinder.IsActive);
        }