예제 #1
0
        private void EveryYear_chart_DataClick(object sender, ChartPoint chartPoint)
        {
            var lst = Statistics.EveryYearStatistics.GetMovies((int)chartPoint.X);
            var dlg = new SimpleMoviesList(lst);

            dlg.Title = new DateTime((int)chartPoint.X, 1, 1).ToString("yyyy");
            dlg.ShowDialog();
        }
예제 #2
0
        private void EveryDay_chart_DataClick(object sender, ChartPoint chartPoint)
        {
            var date = new DateTime((long)(chartPoint.X * TimeSpan.FromDays(1).Ticks));
            var lst  = Statistics.EveryDayStatistics.GetMovies(date);
            var dlg  = new SimpleMoviesList(lst);

            dlg.Title = date.ToString("dd MMMM yyyy");
            dlg.ShowDialog();
        }