public JieqiInfo(int year, int index) { Year = year; Index = index; Number = index + 1; Date = JieqiCalendar.GetJieqi(year, index); Name = JieqiCalendar.s_solarName[index]; }
public static void Main(string[] args) { if (args.Length > 0 && File.Exists(args[0])) { setDesktopImage(args[0]); return; } var jieqi = new JieqiCalendar(); var imagePath = Path.Combine(AppContext.BaseDirectory, $"images/{jieqi.Now.Number}.jpg"); if (File.Exists(imagePath)) { setDesktopImage(imagePath); } }