private void TimeSelectBlock_TimeChanged(object sender, RoutedEventArgs e) { CheckAndSaveChart(); year = timeSelect.Year; season = ChineseValueTranslater.GetTranslateName(timeSelect.Season); ReShow(); }
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); }
private void DetailSelect_TypeChanged(object sender, RoutedEventArgs e) { CheckAndSaveChart(); type = ChineseValueTranslater.GetTranslateName(detailSelect.MainType); typeExtra = ChineseValueTranslater.GetTranslateName(detailSelect.SecondType); ReCreateTopFive(); RefreshTitle(); }
private void NsBlock_TypeChanged(object sender, SelectionChangedEventArgs e) { //检查保存 CheckAndSaveChart(); type = ChineseValueTranslater.GetTranslateName(nsBlock.SelectedType); ReCreateChartElement(); }
private void TsBlock_TimeChanged(object sender, RoutedEventArgs e) { //检查保存 CheckAndSaveChart(); year = tsBlock.Year; season = ChineseValueTranslater.GetTranslateName(tsBlock.Season); ChangeChartElement(); }
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(); }
public Slide1() { InitializeComponent(); database.ReLoaded += Database_ReLoaded; year = tsBlock.Year; season = ChineseValueTranslater.GetTranslateName(tsBlock.Season); type = ChineseValueTranslater.GetTranslateName(nsBlock.SelectedType); this.DataContext = this; ReCreateChartElement(); }
private void TimeSelect_TimeChanged(object sender, RoutedEventArgs e) { CheckAndSaveChart(); year = timeSelect.Year; season = ChineseValueTranslater.GetTranslateName(timeSelect.Season); detailSelect.SetRangeType(false); ReFreshCurrentTag(); RefreshTitle(); }
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(); }
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(); }