资源简介
C#定时提醒软件C#定时提醒软件C#定时提醒软件C#定时提醒软件
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Media;
namespace TimeReminder
{
public partial class Clock : Form
{
private string strTime;
public Clock(String strtime)
{
strTime = strtime;
InitializeComponent();
}
int w = 0;
int h = 0;
int initTop = 0;
Screen screen = Screen.PrimaryScreen;
private void Clock_Load(object sender EventArgs e)
{
w = screen.Bounds.Width; //宽
h = screen.Bounds.Height; //高
this.Left = w - (this.Width);
this.Top = h;
initTop = h;
lblTime.Text = strTime;
}
private void button1_Click(object sender EventArgs e)
{
this.Close();
}
int tick = 0;
int i = 0;
bool flag = false;
private void timer1_Tick(object sender EventArgs e)
{
if (flag)
{
tick--;
if (tick < 0)
{
this.Close();
}
}
else
{
tick++;
//升起
this.Top = initTop - tick * 3;
if (this.Top <= initTop - (this.Height + 30))
{
SoundPlayer player = new SoundPlayer(“大笨钟音效.wav“);
player.Play();
timer1.Interval = 1000;
tick = 8;
flag = true;
}
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 9206 2011-04-10 15:25 TimeReminder\TimeReminder\bin\Debug\clock.gif
文件 8028 2011-04-10 15:25 TimeReminder\TimeReminder\bin\Debug\clock1.gif
文件 1320 2011-04-10 14:31 TimeReminder\TimeReminder\bin\Debug\del.gif
文件 0 2011-04-12 08:57 TimeReminder\TimeReminder\bin\Debug\remind.txt
文件 367104 2011-04-10 17:06 TimeReminder\TimeReminder\bin\Debug\TimeReminder.exe
文件 42496 2011-04-10 17:06 TimeReminder\TimeReminder\bin\Debug\TimeReminder.pdb
文件 14328 2011-07-16 09:30 TimeReminder\TimeReminder\bin\Debug\TimeReminder.vshost.exe
文件 490 2007-07-21 01:33 TimeReminder\TimeReminder\bin\Debug\TimeReminder.vshost.exe.manifest
文件 1330044 2011-04-10 16:18 TimeReminder\TimeReminder\bin\Debug\大笨钟音效.wav
文件 1843 2011-04-10 16:44 TimeReminder\TimeReminder\Clock.cs
文件 4347 2011-04-10 16:44 TimeReminder\TimeReminder\Clock.Designer.cs
文件 67646 2011-04-10 16:44 TimeReminder\TimeReminder\clock.ico
文件 120001 2011-04-10 16:44 TimeReminder\TimeReminder\Clock.resx
文件 76562 2011-04-10 16:44 TimeReminder\TimeReminder\obj\Debug\TimeReminder.Clock.resources
文件 829 2011-07-16 09:30 TimeReminder\TimeReminder\obj\Debug\TimeReminder.csproj.FileListAbsolute.txt
文件 969 2011-04-10 17:06 TimeReminder\TimeReminder\obj\Debug\TimeReminder.csproj.GenerateResource.Cache
文件 367104 2011-04-10 17:06 TimeReminder\TimeReminder\obj\Debug\TimeReminder.exe
文件 42496 2011-04-10 17:06 TimeReminder\TimeReminder\obj\Debug\TimeReminder.pdb
文件 180 2011-04-10 16:44 TimeReminder\TimeReminder\obj\Debug\TimeReminder.Properties.Resources.resources
文件 136166 2011-04-10 17:06 TimeReminder\TimeReminder\obj\Debug\TimeReminder.Reminder.resources
文件 68212 2011-04-10 16:44 TimeReminder\TimeReminder\obj\Debug\TimeReminder.SetTimes.resources
文件 476 2011-04-10 15:40 TimeReminder\TimeReminder\Program.cs
文件 1366 2011-04-10 14:00 TimeReminder\TimeReminder\Properties\AssemblyInfo.cs
文件 2874 2011-04-10 14:00 TimeReminder\TimeReminder\Properties\Resources.Designer.cs
文件 5612 2011-04-10 14:00 TimeReminder\TimeReminder\Properties\Resources.resx
文件 1097 2011-04-10 14:00 TimeReminder\TimeReminder\Properties\Settings.Designer.cs
文件 249 2011-04-10 14:00 TimeReminder\TimeReminder\Properties\Settings.settings
文件 3155 2011-04-10 17:06 TimeReminder\TimeReminder\Reminder.cs
文件 7832 2011-04-10 17:06 TimeReminder\TimeReminder\Reminder.Designer.cs
文件 209842 2011-04-10 17:06 TimeReminder\TimeReminder\Reminder.resx
............此处省略19个文件信息
- 上一篇:c#版flappybird
- 下一篇:c# 频谱显示的源代码
评论
共有 条评论