예제 #1
0
        /// <summary>
        /// On selected region changed.
        /// </summary>
        private void OnSelectedRegionChanged(object sender, EventArgs e)
        {
            var region = RegionSelector.SelectedItem;

            if (region != null)
            {
                ((HeatMapView)View).SetRegion(region);
            }
            EventTypeSelector.SelectFirst();
        }
예제 #2
0
        /// <summary>Ctor.</summary>
        public EventListVM()
        {
            Header           = "Список Событий";
            LoadedDataInfo   = string.Format(DataStatusStringFormat, 0, 0, 0);
            FilteredDataInfo = string.Format(DataStatusStringFormat, 0, 0, 0);

            EventTypeSelector.Add(EventKind.Unknown, "Любой");
            EventTypeSelector.Add(EventKind.Click, "Клики Мыши");
            EventTypeSelector.Add(EventKind.Movement, "Движения Мыши");
            EventTypeSelector.Add(EventKind.Command, "Команды");
            EventTypeSelector.SelectedItemChanged += OnSelectedEventTypeChanged;
        }
예제 #3
0
        /// <summary>
        /// Import UAD-file(s), load available regions.
        /// </summary>
        private void ExecuteImportFile()
        {
            var groups = _import.ImportFile();

            Files.AddRange(groups);

            int fileCount    = Files.Count;
            int sessionCount = Files.Sum(sg => sg.Sessions.Count);
            int eventCount   = Files.Sum(sg => sg.Sessions.Sum(a => a.Events.Count));

            LoadedDataInfo = string.Format(DataStatusStringFormat, fileCount, sessionCount, eventCount);

            EventTypeSelector.SelectedItem = EventTypeSelector.First();
        }
예제 #4
0
        /// <summary>Ctor.</summary>
        public HeatMapVM()
        {
            Header              = "Тепловая Карта";
            LoadedDataInfo      = string.Format(DataStatusStringFormat, 0, 0, 0);
            FilteredDataInfo    = string.Format(DataStatusStringFormat, 0, 0, 0);
            HeatMapOpacity      = 0.8;
            PointGradientRadius = 40;
            PointOverlapRadius  = 10;

            RegionSelector.SelectedItemChanged += OnSelectedRegionChanged;
            EventTypeSelector.Add(EventKind.Click, "Клики Мыши");
            EventTypeSelector.Add(EventKind.Movement, "Движения Мыши");
            EventTypeSelector.Add(EventKind.Command, "Команды");
            EventTypeSelector.SelectedItemChanged += OnSelectedEventTypeChanged;
        }