Form1.cs
(开头部分) 4KB这里只显示每个文件的开头 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;
using System.Runtime.InteropServices;
using System.Diagnostics;
namespace BirthDayToMyGirlFriend
{
public partial class Form1 : Form
{
[DllImport("winmm")]
public static extern bool PlaySound(string szSound, IntPtr hMod, int i); //声明API:PlaySound
// 下载于www.51aspx.com
public Form1()
{
InitializeComponent();
dtmBirthday.Text = "2014年08月19日";
timer2.Interval = 1000;
}
private void btnOpen_Click(object sender, EventArgs e)
{
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
txtPath.Text = openFileDialog1.FileName;
}
}
private void timer1_Tick(object sender, EventArgs e)
{
try
{
DateTime dtNow = DateTime.Now.ToLocalTime();
string strDateBir = dtmBirthday.Text + " " + txtTime.Text;
DateTime dtB = Convert.ToDateTime(strDateBir);
TimeSpan ts = dtB.Subtract(dtNow);
// 下载于www.51aspx.com
if (Convert.ToInt64 (lblLeftTime.Text) != 0)
{
lblLeftTime.Text = Convert.ToInt64(ts.TotalSeconds).ToString();
}
else
{
timer1.Stop();
timer1.Enabled = false;
axWindowsMediaPlayer1.URL = txtPath.Text;
lblMusicTime.Text = axWindowsMediaPlayer1.currentMedia.duration.ToString();
timer2.Enabled = true;
timer2.Start();
}
后面还有 98 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
