Form1.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace BrithdayEigth
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public static string[] date = {
"甲子", "乙丑", "丙寅", "丁卯", "戊辰", "己巳", "庚午", "辛未", "壬申", "癸酉",
"甲戊", "乙亥", "丙子", "丁丑", "戊寅", "乙卯", "庚辰", "辛巳", "壬午", "癸未", "甲申", "乙酉", "丙戌", "丁亥", "戊子", "己丑", "庚寅", "辛卯", "壬辰", "癸巳", "甲午", "乙未", "丙申", "丁酉", "戊戌", "己亥", "庚子", "辛丑", "壬寅", "癸卯", "甲辰", "乙巳", "丙午", "丁未", "戊申", "乙酉", "庚戌", "辛亥", "壬子", "癸丑", "甲寅", "乙卯", "丙辰", "丁巳", "戊午", "己未", "庚申", "辛酉", "壬戌", "癸亥"
};
// 下载于www.51aspx.com
public int yearZi=0;
private void btnOk_Click(object sender, EventArgs e)
{
DateTime dt=Day.Value;
int year=dt.Year;
int moon = dt.Month;
int date = dt.DayOfYear;
MessageBox.Show("Test:"+(year%60-3)+":"+moon+":"+date);
//调用获得年生辰的方法
String yearZi = yearZ(year);
string moonZi = moonZ(moon,year);
string dayZi = dayei(year, date);
int hour = int.Parse(hourDate.Text);
string hourZi= Hours(hour, date, year);
txtBrithday.Text = yearZi+" "+moonZi+" "+dayZi+" "+hourZi;
}
private void Form1_Load(object sender, EventArgs e)
{
}
//获得年生辰的方法
public string yearZ(int y) {
int yearZie = yearNum(y);
return date[yearZie-1];
}
public string moonZ(int m,int year) {
int yearZie = yearNum(year);
if (yearZie >= 12)
{
if (yearZie % 10 == 6 || yearZie % 10 == 1)
{
return date[2+m-1];
}
else if (yearZie % 10 == 2 || yearZie % 10 == 7) {
后面还有 140 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。