/// <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(); }
/// <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; }
/// <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(); }
/// <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; }