ChineseCalendarForm.cs 798 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Globalization;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. using Y.Skin.YoForm.CustomTitle;
  12. namespace Y.Test.Views
  13. {
  14. public partial class ChineseCalendarForm : DarkTitleShadowForm
  15. {
  16. public ChineseCalendarForm()
  17. {
  18. InitializeComponent();
  19. }
  20. private void ChineseCalendarForm_Load(object sender, EventArgs e)
  21. {
  22. ChineseLunisolarCalendar clc = new ChineseLunisolarCalendar();
  23. label1.Text = string.Format("{0}年{1}月{2}日", clc.GetYear(DateTime.Now), clc.GetMonth(DateTime.Now), clc.GetDayOfMonth(DateTime.Now));
  24. }
  25. }
  26. }