コード例 #1
0
 private void TimeSelectBlock_TimeChanged(object sender, RoutedEventArgs e)
 {
     CheckAndSaveChart();
     year   = timeSelect.Year;
     season = ChineseValueTranslater.GetTranslateName(timeSelect.Season);
     ReShow();
 }
コード例 #2
0
        public Slide4()
        {
            InitializeComponent();
            //String[] years = new String[] { "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018" };
            //String[] seasons = new String[] { "winter", "spring", "summer", "autumn", "全部" };
            //Directory.CreateDirectory("ciyun");
            //foreach(String year in years)
            //{
            //    foreach(String season in seasons)
            //    {
            //        Dictionary<String, double> sbdic = ZebraManager.Instance.DBOprator.GetFourthPage(year, season);
            //        using (FileStream fs = File.Create(@"ciyun\" + year + season))
            //        {
            //            using (StreamWriter sw = new StreamWriter(fs))
            //            {
            //                foreach(var kv in sbdic)
            //                {
            //                    sw.WriteLine("{0}\t{1}", kv.Key, kv.Value);
            //                }
            //            }
            //        }
            //    }
            //}

            year            = timeSelect.Year;
            season          = ChineseValueTranslater.GetTranslateName(timeSelect.Season);
            mainShow.Source = images.GetWordCloud(year, season);
        }
コード例 #3
0
ファイル: Slide3.xaml.cs プロジェクト: WXJ0204/ZebraBangumi
 private void DetailSelect_TypeChanged(object sender, RoutedEventArgs e)
 {
     CheckAndSaveChart();
     type      = ChineseValueTranslater.GetTranslateName(detailSelect.MainType);
     typeExtra = ChineseValueTranslater.GetTranslateName(detailSelect.SecondType);
     ReCreateTopFive();
     RefreshTitle();
 }
コード例 #4
0
ファイル: Slide1.xaml.cs プロジェクト: WXJ0204/ZebraBangumi
        private void NsBlock_TypeChanged(object sender, SelectionChangedEventArgs e)
        {
            //检查保存
            CheckAndSaveChart();

            type = ChineseValueTranslater.GetTranslateName(nsBlock.SelectedType);
            ReCreateChartElement();
        }
コード例 #5
0
ファイル: Slide1.xaml.cs プロジェクト: WXJ0204/ZebraBangumi
        private void TsBlock_TimeChanged(object sender, RoutedEventArgs e)
        {
            //检查保存
            CheckAndSaveChart();

            year   = tsBlock.Year;
            season = ChineseValueTranslater.GetTranslateName(tsBlock.Season);
            ChangeChartElement();
        }
コード例 #6
0
ファイル: Slide3.xaml.cs プロジェクト: WXJ0204/ZebraBangumi
 private void PeriodSelect_PeriodChanged(object sender, RoutedEventArgs e)
 {
     CheckAndSaveChart();
     start.year   = periodSelect.StartYear;
     end.year     = periodSelect.EndYear;
     start.season = ChineseValueTranslater.GetTranslateName(periodSelect.StartSeason);
     end.season   = ChineseValueTranslater.GetTranslateName(periodSelect.EndSeason);
     ReFreshLine();
     RefreshTitle();
 }
コード例 #7
0
ファイル: Slide1.xaml.cs プロジェクト: WXJ0204/ZebraBangumi
 public Slide1()
 {
     InitializeComponent();
     database.ReLoaded += Database_ReLoaded;
     year             = tsBlock.Year;
     season           = ChineseValueTranslater.GetTranslateName(tsBlock.Season);
     type             = ChineseValueTranslater.GetTranslateName(nsBlock.SelectedType);
     this.DataContext = this;
     ReCreateChartElement();
 }
コード例 #8
0
ファイル: Slide2.xaml.cs プロジェクト: WXJ0204/ZebraBangumi
        private void TimeSelect_TimeChanged(object sender, RoutedEventArgs e)
        {
            CheckAndSaveChart();
            year   = timeSelect.Year;
            season = ChineseValueTranslater.GetTranslateName(timeSelect.Season);

            detailSelect.SetRangeType(false);
            ReFreshCurrentTag();
            RefreshTitle();
        }
コード例 #9
0
ファイル: Slide2.xaml.cs プロジェクト: WXJ0204/ZebraBangumi
 public Slide2()
 {
     InitializeComponent();
     database.ReLoaded += Database_ReLoaded;
     this.DataContext   = this;
     year      = timeSelect.Year;
     season    = ChineseValueTranslater.GetTranslateName(timeSelect.Season);
     type      = ChineseValueTranslater.GetTranslateName(detailSelect.MainType);
     typeExtra = ChineseValueTranslater.GetTranslateName(detailSelect.SecondType);
     ReCreateTopFive();
     RefreshTitle();
 }
コード例 #10
0
ファイル: Slide3.xaml.cs プロジェクト: WXJ0204/ZebraBangumi
 public Slide3()
 {
     InitializeComponent();
     database.ReLoaded       += Database_ReLoaded;
     this.DataContext         = this;
     detailSelect.DisableTop5 = true;
     start.year   = periodSelect.StartYear;
     end.year     = periodSelect.EndYear;
     start.season = ChineseValueTranslater.GetTranslateName(periodSelect.StartSeason);
     end.season   = ChineseValueTranslater.GetTranslateName(periodSelect.EndSeason);
     type         = ChineseValueTranslater.GetTranslateName(detailSelect.MainType);
     typeExtra    = ChineseValueTranslater.GetTranslateName(detailSelect.SecondType);
     ReCreateTopFive();
     ((Axis)chart.AxisX[0]).Labels = GetAxis();
     RefreshTitle();
 }