Beispiel #1
0
        private void UpdateEventCounts()
        {
            //reset prec values
            _totalsReport = new EventTotalsReport();

            var fakeEventId = 0;
            foreach (var te in _timelineModel.Events)
            {
                _totalsReport.CountEvent(te.e, fakeEventId++);
            }
            btnArgPointTopicChanged.eventCount.Text = countToString(_totalsReport.TotalArgPointTopicChanged);
            btnBadgeCreated.eventCount.Text = countToString(_totalsReport.TotalBadgeCreated);
            btnBadgeEdited.eventCount.Text = countToString(_totalsReport.TotalBadgeEdited);
            btnBadgeMoved.eventCount.Text = countToString(_totalsReport.TotalBadgeMoved);
            btnBadgeZoomIn.eventCount.Text = countToString(_totalsReport.TotalBadgeZoomIn);
            btnClusterCreated.eventCount.Text = countToString(_totalsReport.TotalClusterCreated);
            btnClusterRemoved.eventCount.Text = countToString(_totalsReport.TotalClusterDeleted);
            btnClusterIn.eventCount.Text = countToString(_totalsReport.TotalClusterIn);
            btnClusterMoved.eventCount.Text = countToString(_totalsReport.TotalClusterMoved);
            btnClusterOut.eventCount.Text = countToString(_totalsReport.TotalClusterOut);
            btnCommentAdded.eventCount.Text = countToString(_totalsReport.TotalCommentAdded);
            btnCommentRemoved.eventCount.Text = countToString(_totalsReport.TotalCommentRemoved);
            btnFreeDrawingCreated.eventCount.Text = countToString(_totalsReport.TotalFreeDrawingCreated);
            btnFreeDrawingMoved.eventCount.Text = countToString(_totalsReport.TotalFreeDrawingMoved);
            btnFreeDrawingRemoved.eventCount.Text = countToString(_totalsReport.TotalFreeDrawingRemoved);
            btnFreeDrawingResize.eventCount.Text = countToString(_totalsReport.TotalFreeDrawingResize);
            btnImageAdded.eventCount.Text = countToString(_totalsReport.TotalImageAdded);
            btnImageOpened.eventCount.Text = countToString(_totalsReport.TotalImageOpened);
            btnLinkCreated.eventCount.Text = countToString(_totalsReport.TotalLinkCreated);
            btnLinkRemoved.eventCount.Text = countToString(_totalsReport.TotalLinkRemoved);
            btnMediaRemoved.eventCount.Text = countToString(_totalsReport.TotalMediaRemoved);
            btnPdfAdded.eventCount.Text = countToString(_totalsReport.TotalPdfAdded);
            btnPdfOpened.eventCount.Text = countToString(_totalsReport.TotalPdfOpened);
            btnRecordingStarted.eventCount.Text = countToString(_totalsReport.TotalRecordingStarted);
            btnRecordingStopped.eventCount.Text = countToString(_totalsReport.TotalRecordingStopped);
            btnSceneZoomIn.eventCount.Text = countToString(_totalsReport.TotalSceneZoomedIn);
            btnSceneZoomOut.eventCount.Text = countToString(_totalsReport.TotalSceneZoomedOut);
            btnScreenshotAdded.eventCount.Text = countToString(_totalsReport.TotalScreenshotAdded);
            btnScreenshotOpened.eventCount.Text = countToString(_totalsReport.TotalScreenshotOpened);
            btnSourceAdded.eventCount.Text = countToString(_totalsReport.TotalSourceAdded);
            btnSourceOpened.eventCount.Text = countToString(_totalsReport.TotalSourceOpened);
            btnSourceRemoved.eventCount.Text = countToString(_totalsReport.TotalSourceRemoved);
            btnSourceOpened.eventCount.Text = countToString(_totalsReport.TotalSourceOpened);
            btnYoutubeAdded.eventCount.Text = countToString(_totalsReport.TotalYoutubeAdded);
            btnVideoOpened.eventCount.Text = countToString(_totalsReport.TotalVideoOpened);
        }