示例#1
0
        private async void BirthDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
        {
            if (PersonalBirthday.Text == "未设置")
            {
                MessageDialog AboutDialog = new MessageDialog("您还没有设置生日哦,赶紧去设置吧。", "提示");
                await AboutDialog.ShowAsync();

                BirthDialog.Hide();
            }
            else
            {
                try
                {
                    DateTime birthday  = Convert.ToDateTime(PersonalBirthday.Text);
                    string   Tip       = "";
                    string   _birthday = birthday.ToString("yyyy-MM-dd");
                    All.Current.conn.Insert(new DataTemple()
                    {
                        Schedule_name = "出生日", CalculatedDate = CustomData.Calculator(_birthday), Date = _birthday, BgColor = "#fffbb612", TintOpacity = 0.7, IsTop = "0", AddTime = ""
                    });
                    localSettings.Values["出生日" + _birthday] = Tip;
                    MainPage.Current.MyNav.SelectedItem     = MainPage.Current.MyNav.MenuItems[0];
                    Frame.Navigate(typeof(All));
                    PopupNotice popupNotice = new PopupNotice("添加成功");
                    popupNotice.ShowAPopup();
                }
                catch
                {
                    MessageDialog AboutDialog = new MessageDialog("您已经添加过了哦。", "提示");
                    await AboutDialog.ShowAsync();
                }
            }
        }
示例#2
0
        private void DetailsDate_Tapped(object sender, TappedRoutedEventArgs e)
        {
            if (MainPage.Current.SelectedPage)
            {
                DateTime d1 = Convert.ToDateTime(All.Current.str3);
                DateTime d2 = DateTime.Now;
                DateTime d3 = Convert.ToDateTime(string.Format("{0}/{1}/{2}", d1.Year, d1.Month, d1.Day));
                DateTime d4 = Convert.ToDateTime(string.Format("{0}/{1}/{2}", d2.Year, d2.Month, d2.Day));

                if (DetailsDate.Text == CustomData.Calculator(All.Current.str3))
                {
                    if (d4 > d3)
                    {
                        DetailsDate.Text = "已过" + App.Term(d3, d4);
                    }
                    else
                    {
                        if (d4 < d3)
                        {
                            DetailsDate.Text = "还有" + App.Term(d4, d3);
                        }
                    }
                }
                else
                {
                    DetailsDate.Text = CustomData.Calculator(All.Current.str3);
                }
            }
            else
            {
                DateTime d1 = Convert.ToDateTime(Festival.Current.str3);
                DateTime d2 = DateTime.Now;
                DateTime d3 = Convert.ToDateTime(string.Format("{0}/{1}/{2}", d1.Year, d1.Month, d1.Day));
                DateTime d4 = Convert.ToDateTime(string.Format("{0}/{1}/{2}", d2.Year, d2.Month, d2.Day));

                if (DetailsDate.Text == Festival.Current.str2)
                {
                    if (d4 > d3)
                    {
                        DetailsDate.Text = "已过" + App.Term(d3, d4);
                    }
                    else
                    {
                        if (d4 < d3)
                        {
                            DetailsDate.Text = "还有" + App.Term(d4, d3);
                        }
                    }
                }
                else
                {
                    DetailsDate.Text = Festival.Current.str2;
                }
            }
            dCalDate.Text = DetailsDate.Text;
        }
示例#3
0
        private void DetailsDate_Tapped(object sender, TappedRoutedEventArgs e)
        {
            if (MainPage.Current.SelectedPage)
            {
                DateTime d1 = Convert.ToDateTime(All.Current.str3);
                DateTime d2 = DateTime.Now;
                DateTime d3 = Convert.ToDateTime(string.Format("{0}/{1}/{2}", d1.Year, d1.Month, d1.Day));
                DateTime d4 = Convert.ToDateTime(string.Format("{0}/{1}/{2}", d2.Year, d2.Month, d2.Day));
                switch (DetailsDateMode)
                {
                case "Day":
                    DetailsDate.Text = All.Current.ConvertToWeek(All.Current.str3);
                    DetailsDateMode  = "Week";
                    PopupNotice popupNotice0 = new PopupNotice("周数模式");
                    popupNotice0.ShowAPopup();
                    break;

                case "Week":
                    if (d4 > d3)
                    {
                        DetailsDate.Text = "已过" + App.Term(d3, d4);
                    }
                    else
                    {
                        if (d4 < d3)
                        {
                            DetailsDate.Text = "还有" + App.Term(d4, d3);
                        }
                    }
                    DetailsDateMode = "Year";
                    PopupNotice popupNotice1 = new PopupNotice("年数模式");
                    popupNotice1.ShowAPopup();
                    break;

                case "Year":
                    DetailsDate.Text = CustomData.Calculator(All.Current.str3);
                    DetailsDateMode  = "Day";
                    PopupNotice popupNotice2 = new PopupNotice("天数模式");
                    popupNotice2.ShowAPopup();
                    break;
                }
                dCalDate.Text = DetailsDate.Text;
            }
            else
            {
                DateTime d1 = Convert.ToDateTime(Festival.Current.str3);
                DateTime d2 = DateTime.Now;
                DateTime d3 = Convert.ToDateTime(string.Format("{0}/{1}/{2}", d1.Year, d1.Month, d1.Day));
                DateTime d4 = Convert.ToDateTime(string.Format("{0}/{1}/{2}", d2.Year, d2.Month, d2.Day));

                switch (FestivalDateMode)
                {
                case "Day":
                    DetailsDate.Text = All.Current.ConvertToWeek(Festival.Current.str3);
                    FestivalDateMode = "Week";
                    PopupNotice popupNotice0 = new PopupNotice("周数模式");
                    popupNotice0.ShowAPopup();
                    break;

                case "Week":
                    if (d4 > d3)
                    {
                        DetailsDate.Text = "已过" + App.Term(d3, d4);
                    }
                    else
                    {
                        if (d4 < d3)
                        {
                            DetailsDate.Text = "还有" + App.Term(d4, d3);
                        }
                    }
                    FestivalDateMode = "Year";
                    PopupNotice popupNotice1 = new PopupNotice("年数模式");
                    popupNotice1.ShowAPopup();
                    break;

                case "Year":
                    DetailsDate.Text = CustomData.Calculator(Festival.Current.str3);
                    FestivalDateMode = "Day";
                    PopupNotice popupNotice2 = new PopupNotice("天数模式");
                    popupNotice2.ShowAPopup();
                    break;
                }
                dCalDate.Text = DetailsDate.Text;
            }
        }
 public FestivalDataViewModel()
 {
     if (DateTime.Now.Year.ToString().Equals("2019"))
     {
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-01-01"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "元旦", Str2 = CustomData.Calculator("2019-01-01"), Str3 = "2019-01-01", Str4 = Color.FromArgb(255, 241, 147, 156), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 241, 147, 156), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "元旦", Str2 = CustomData.Calculator("2020-01-01"), Str3 = "2020-01-01", Str4 = Color.FromArgb(255, 241, 147, 156), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 241, 147, 156), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-02-05"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "春节", Str2 = CustomData.Calculator("2019-02-05"), Str3 = "2019-02-05", Str4 = Color.FromArgb(255, 166, 27, 41), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 166, 27, 41), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "春节", Str2 = CustomData.Calculator("2020-01-25"), Str3 = "2020-01-25", Str4 = Color.FromArgb(255, 166, 27, 41), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 166, 27, 41), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-02-14"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "情人节❤", Str2 = CustomData.Calculator("2019-02-14"), Str3 = "2019-02-14", Str4 = Colors.LightPink, Str5 = All.Current.ColorfulBrush(Colors.LightPink, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "情人节❤", Str2 = CustomData.Calculator("2020-02-14"), Str3 = "2020-02-14", Str4 = Colors.LightPink, Str5 = All.Current.ColorfulBrush(Colors.LightPink, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-02-19"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "元宵节", Str2 = CustomData.Calculator("2019-02-19"), Str3 = "2019-02-19", Str4 = Color.FromArgb(255, 251, 182, 18), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 251, 182, 18), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "元宵节", Str2 = CustomData.Calculator("2020-02-08"), Str3 = "2020-02-08", Str4 = Color.FromArgb(255, 251, 182, 18), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 251, 182, 18), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-03-08"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "妇女节", Str2 = CustomData.Calculator("2019-03-08"), Str3 = "2019-03-08", Str4 = Color.FromArgb(255, 231, 124, 142), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 231, 124, 142), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "妇女节", Str2 = CustomData.Calculator("2020-03-08"), Str3 = "2020-03-08", Str4 = Color.FromArgb(255, 231, 124, 142), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 231, 124, 142), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-04-05"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "清明节", Str2 = CustomData.Calculator("2019-04-05"), Str3 = "2019-04-05", Str4 = Color.FromArgb(255, 18, 170, 156), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 18, 170, 156), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "清明节", Str2 = CustomData.Calculator("2020-04-04"), Str3 = "2020-04-04", Str4 = Color.FromArgb(255, 18, 170, 156), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 18, 170, 156), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-05-01"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "劳动节", Str2 = CustomData.Calculator("2019-05-01"), Str3 = "2019-05-01", Str4 = Color.FromArgb(255, 251, 185, 87), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 251, 185, 87), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "劳动节", Str2 = CustomData.Calculator("2020-05-01"), Str3 = "2020-05-01", Str4 = Color.FromArgb(255, 251, 185, 87), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 251, 185, 87), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-06-01"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "儿童节", Str2 = CustomData.Calculator("2019-06-01"), Str3 = "2019-06-01", Str4 = Colors.Orange, Str5 = All.Current.ColorfulBrush(Colors.Orange, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "儿童节", Str2 = CustomData.Calculator("2020-06-01"), Str3 = "2020-06-01", Str4 = Colors.Orange, Str5 = All.Current.ColorfulBrush(Colors.Orange, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-06-07"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "端午节", Str2 = CustomData.Calculator("2019-06-07"), Str3 = "2019-06-07", Str4 = Color.FromArgb(255, 105, 167, 148), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 105, 167, 148), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "端午节", Str2 = CustomData.Calculator("2020-06-25"), Str3 = "2020-06-25", Str4 = Color.FromArgb(255, 105, 167, 148), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 105, 167, 148), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-08-07"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "七夕❤", Str2 = CustomData.Calculator("2019-08-07"), Str3 = "2019-08-07", Str4 = Colors.LightPink, Str5 = All.Current.ColorfulBrush(Colors.LightPink, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "七夕❤", Str2 = CustomData.Calculator("2020-08-25"), Str3 = "2020-08-25", Str4 = Colors.LightPink, Str5 = All.Current.ColorfulBrush(Colors.LightPink, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-09-10"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "教师节", Str2 = CustomData.Calculator("2019-09-10"), Str3 = "2019-09-10", Str4 = Colors.MediumPurple, Str5 = All.Current.ColorfulBrush(Colors.MediumPurple, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "教师节", Str2 = CustomData.Calculator("2020-09-10"), Str3 = "2020-09-10", Str4 = Colors.MediumPurple, Str5 = All.Current.ColorfulBrush(Colors.MediumPurple, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-09-13"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "中秋节", Str2 = CustomData.Calculator("2019-09-13"), Str3 = "2019-09-13", Str4 = Color.FromArgb(255, 166, 27, 41), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 166, 27, 41), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "中秋节", Str2 = CustomData.Calculator("2020-10-01"), Str3 = "2020-10-01", Str4 = Color.FromArgb(255, 166, 27, 41), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 166, 27, 41), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-10-01"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "国庆节", Str2 = CustomData.Calculator("2019-10-01"), Str3 = "2019-10-01", Str4 = Colors.OrangeRed, Str5 = All.Current.ColorfulBrush(Colors.OrangeRed, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "国庆节", Str2 = CustomData.Calculator("2020-10-01"), Str3 = "2020-10-01", Str4 = Colors.OrangeRed, Str5 = All.Current.ColorfulBrush(Colors.OrangeRed, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-10-07"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "重阳节", Str2 = CustomData.Calculator("2019-10-07"), Str3 = "2019-10-07", Str4 = Colors.DarkOrange, Str5 = All.Current.ColorfulBrush(Colors.DarkOrange, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "重阳节", Str2 = CustomData.Calculator("2020-10-25"), Str3 = "2020-10-25", Str4 = Colors.DarkOrange, Str5 = All.Current.ColorfulBrush(Colors.DarkOrange, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-12-25"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "圣诞节", Str2 = CustomData.Calculator("2019-12-25"), Str3 = "2019-12-25", Str4 = Colors.Crimson, Str5 = All.Current.ColorfulBrush(Colors.Crimson, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "圣诞节", Str2 = CustomData.Calculator("2020-12-25"), Str3 = "2020-12-25", Str4 = Colors.Crimson, Str5 = All.Current.ColorfulBrush(Colors.Crimson, 0.7)
             });
         }
     }
     else
     {
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-01-01"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "元旦", Str2 = CustomData.Calculator("2020-01-01"), Str3 = "2020-01-01", Str4 = Color.FromArgb(255, 241, 147, 156), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 241, 147, 156), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "元旦", Str2 = CustomData.Calculator("2021-01-01"), Str3 = "2021-01-01", Str4 = Color.FromArgb(255, 241, 147, 156), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 241, 147, 156), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-01-25"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "春节", Str2 = CustomData.Calculator("2020-01-25"), Str3 = "2020-01-25", Str4 = Color.FromArgb(255, 166, 27, 41), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 166, 27, 41), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "春节", Str2 = CustomData.Calculator("2021-02-12"), Str3 = "2021-02-12", Str4 = Color.FromArgb(255, 166, 27, 41), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 166, 27, 41), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-02-08"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "元宵节", Str2 = CustomData.Calculator("2020-02-08"), Str3 = "2020-02-08", Str4 = Color.FromArgb(255, 251, 182, 18), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 251, 182, 18), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "元宵节", Str2 = CustomData.Calculator("2021-02-26"), Str3 = "2021-02-26", Str4 = Color.FromArgb(255, 251, 182, 18), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 251, 182, 18), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-02-14"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "情人节❤", Str2 = CustomData.Calculator("2020-02-14"), Str3 = "2020-02-14", Str4 = Colors.LightPink, Str5 = All.Current.ColorfulBrush(Colors.LightPink, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "情人节❤", Str2 = CustomData.Calculator("2021-02-14"), Str3 = "2021-02-14", Str4 = Colors.LightPink, Str5 = All.Current.ColorfulBrush(Colors.LightPink, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-03-08"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "妇女节", Str2 = CustomData.Calculator("2020-03-08"), Str3 = "2020-03-08", Str4 = Color.FromArgb(255, 231, 124, 142), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 231, 124, 142), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "妇女节", Str2 = CustomData.Calculator("2021-03-08"), Str3 = "2021-03-08", Str4 = Color.FromArgb(255, 231, 124, 142), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 231, 124, 142), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-04-04"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "清明节", Str2 = CustomData.Calculator("2020-04-04"), Str3 = "2020-04-04", Str4 = Color.FromArgb(255, 18, 170, 156), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 18, 170, 156), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "清明节", Str2 = CustomData.Calculator("2021-04-04"), Str3 = "2021-04-04", Str4 = Color.FromArgb(255, 18, 170, 156), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 18, 170, 156), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-05-01"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "劳动节", Str2 = CustomData.Calculator("2020-05-01"), Str3 = "2020-05-01", Str4 = Color.FromArgb(255, 251, 185, 87), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 251, 185, 87), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "劳动节", Str2 = CustomData.Calculator("2021-05-01"), Str3 = "2021-05-01", Str4 = Color.FromArgb(255, 251, 185, 87), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 251, 185, 87), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2019-12-25"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "儿童节", Str2 = CustomData.Calculator("2020-06-01"), Str3 = "2020-06-01", Str4 = Colors.Orange, Str5 = All.Current.ColorfulBrush(Colors.Orange, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "儿童节", Str2 = CustomData.Calculator("2021-06-01"), Str3 = "2021-06-01", Str4 = Colors.Orange, Str5 = All.Current.ColorfulBrush(Colors.Orange, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-06-25"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "端午节", Str2 = CustomData.Calculator("2020-06-25"), Str3 = "2020-06-25", Str4 = Color.FromArgb(255, 105, 167, 148), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 105, 167, 148), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "端午节", Str2 = CustomData.Calculator("2021-06-14"), Str3 = "2021-06-14", Str4 = Color.FromArgb(255, 105, 167, 148), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 105, 167, 148), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-08-25"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "七夕❤", Str2 = CustomData.Calculator("2020-08-25"), Str3 = "2020-08-25", Str4 = Colors.LightPink, Str5 = All.Current.ColorfulBrush(Colors.LightPink, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "七夕❤", Str2 = CustomData.Calculator("2021-08-14"), Str3 = "2021-08-14", Str4 = Colors.LightPink, Str5 = All.Current.ColorfulBrush(Colors.LightPink, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-09-10"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "教师节", Str2 = CustomData.Calculator("2020-09-10"), Str3 = "2020-09-10", Str4 = Colors.MediumPurple, Str5 = All.Current.ColorfulBrush(Colors.MediumPurple, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "教师节", Str2 = CustomData.Calculator("2021-09-10"), Str3 = "2021-09-10", Str4 = Colors.MediumPurple, Str5 = All.Current.ColorfulBrush(Colors.MediumPurple, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-10-01"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "中秋节", Str2 = CustomData.Calculator("2020-10-01"), Str3 = "2020-10-01", Str4 = Color.FromArgb(255, 166, 27, 41), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 166, 27, 41), 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "中秋节", Str2 = CustomData.Calculator("2021-09-01"), Str3 = "2021-09-21", Str4 = Color.FromArgb(255, 166, 27, 41), Str5 = All.Current.ColorfulBrush(Color.FromArgb(255, 166, 27, 41), 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-10-01"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "国庆节", Str2 = CustomData.Calculator("2020-10-01"), Str3 = "2020-10-01", Str4 = Colors.OrangeRed, Str5 = All.Current.ColorfulBrush(Colors.OrangeRed, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "国庆节", Str2 = CustomData.Calculator("2021-10-01"), Str3 = "2021-10-01", Str4 = Colors.OrangeRed, Str5 = All.Current.ColorfulBrush(Colors.OrangeRed, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-10-25"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "重阳节", Str2 = CustomData.Calculator("2020-10-25"), Str3 = "2020-10-25", Str4 = Colors.DarkOrange, Str5 = All.Current.ColorfulBrush(Colors.DarkOrange, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "重阳节", Str2 = CustomData.Calculator("2021-10-14"), Str3 = "2021-10-14", Str4 = Colors.DarkOrange, Str5 = All.Current.ColorfulBrush(Colors.DarkOrange, 0.7)
             });
         }
         if (DateTime.Now.Date <= Convert.ToDateTime("2020-12-25"))
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "圣诞节", Str2 = CustomData.Calculator("2020-12-25"), Str3 = "2020-12-25", Str4 = Colors.Crimson, Str5 = All.Current.ColorfulBrush(Colors.Crimson, 0.7)
             });
         }
         else
         {
             FestivalDatas.Add(new FestivalData()
             {
                 Str1 = "圣诞节", Str2 = CustomData.Calculator("2021-12-25"), Str3 = "2021-12-25", Str4 = Colors.Crimson, Str5 = All.Current.ColorfulBrush(Colors.Crimson, 0.7)
             });
         }
     }
 }