资源简介
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.Reflection;
namespace BoBoClock
{
public partial class AboutDlg : Form
{
private bool IsOpen = true;
public AboutDlg()
{
InitializeComponent();
// 初始化 AboutBox 以显示程序集信息中包含的产品信息。
// 也可以通过以下方法更改应用程序的程序集信息设置:
// - 项目->属性->应用程序->程序集信息
// - AssemblyInfo.cs
this.labelProductName.Text = AssemblyProduct;
this.labelVersion.Text = String.Format(“版本 {0}“ AssemblyVersion);
this.labelCopyright.Text = AssemblyCopyright;
this.labelCompanyName.Text = AssemblyCompany;
this.textBoxDescription.Text = AssemblyDescription;
this.Opacity = 0;
this.timer1.Start();
}
private void btnOK_Click(object sender EventArgs e)
{
IsOpen = false;
timer1.Start();
}
//linking to my web site
private void linkMySite_linkClicked(object sender linkLabellinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(“http://www.libo032.ik8.com“);
}
//send email to me
private void linkMyEMail_linkClicked(object sender linkLabellinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(“mailto:libo250@hotmail.com“);
}
private void timer1_Tick(object sender EventArgs e)
{
if(IsOpen==true)
{
this.Opacity += 0.1;
if(this.Opacity==1)
{
timer1.Stop();
}
}else
{
this.Opacity-=0.1;
if(this.Opacity==0)
{
this.timer1.Dispose();
this.Close();
}
}
}
#region 程序集属性访问器
public string Assemblytitle
{
get
{
// 获取此程序集上的所有 title 属性
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblytitleAttribute) false);
// 如果至少有一个 title 属性
if (attributes.Length > 0)
{
// 请选择第一个属性
AssemblytitleAttribute titleAttribute = (AssemblytitleAttribute)attributes[0];
// 如果该属性为非空字符串,则将其返回
if (titleAttribute.title != ““)
return titleAttribute.title;
}
// 如果没有 title 属性,或者 title 属性为一个空字符串,则返回 .exe 的名称
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
}
}
public string AssemblyVersion
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 5958 2006-07-22 19:35 星烁小钟源代码(C#)\AboutDlg.cs
....... 11264 2006-07-22 19:35 星烁小钟源代码(C#)\AboutDlg.Designer.cs
....... 6402 2006-07-22 19:35 星烁小钟源代码(C#)\AboutDlg.resx
....... 3675 2006-07-24 16:59 星烁小钟源代码(C#)\app.config
....... 7385 2006-07-25 22:21 星烁小钟源代码(C#)\BoBoClock.csproj
....... 724 2006-07-25 19:04 星烁小钟源代码(C#)\BoBoClock.csproj.user
....... 906 2006-07-21 18:55 星烁小钟源代码(C#)\BoBoClock.sln
.....H. 29184 2007-02-06 14:50 星烁小钟源代码(C#)\BoBoClock.suo
....... 3755 2006-07-22 22:35 星烁小钟源代码(C#)\ClockLabel.cs
....... 20190 2006-07-26 00:39 星烁小钟源代码(C#)\MainForm.cs
....... 13278 2006-07-25 20:47 星烁小钟源代码(C#)\MainForm.Designer.cs
....... 51423 2006-07-25 20:47 星烁小钟源代码(C#)\MainForm.resx
....... 36671 2006-07-23 23:30 星烁小钟源代码(C#)\MainForm.zh-CN.resx
....... 102 2006-07-22 04:33 星烁小钟源代码(C#)\MDAEnable.reg
....... 471 2006-07-24 15:21 星烁小钟源代码(C#)\Program.cs
....... 4219 2006-07-25 23:19 星烁小钟源代码(C#)\SetInfoForm.cs
....... 6558 2006-07-25 23:09 星烁小钟源代码(C#)\SetInfoForm.Designer.cs
....... 5814 2006-07-25 23:09 星烁小钟源代码(C#)\SetInfoForm.resx
....... 5869 2006-07-26 00:48 星烁小钟源代码(C#)\SetTask.cs
....... 16719 2006-07-26 00:46 星烁小钟源代码(C#)\SetTask.Designer.cs
....... 5814 2006-07-26 00:46 星烁小钟源代码(C#)\SetTask.resx
....... 1255 2006-07-21 21:33 星烁小钟源代码(C#)\Settings.cs
....... 8652 2006-07-25 13:50 星烁小钟源代码(C#)\ShowMsgForm.cs
....... 2750 2006-07-24 15:32 星烁小钟源代码(C#)\ShowMsgForm.Designer.cs
....... 6216 2006-07-24 15:32 星烁小钟源代码(C#)\ShowMsgForm.resx
....... 6022 2006-07-25 16:00 星烁小钟源代码(C#)\Time
....... 3668 2006-07-24 16:38 星烁小钟源代码(C#)\bin\Debug\BoBoClock.exe.config
....... 5632 2005-12-08 14:51 星烁小钟源代码(C#)\bin\Debug\BoBoClock.vshost.exe
....... 3668 2006-07-24 16:38 星烁小钟源代码(C#)\bin\Debug\BoBoClock.vshost.exe.config
....... 0 2006-08-01 23:16 星烁小钟源代码(C#)\bin\Release\bg.xm
............此处省略68个文件信息
相关资源
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
- C#指纹识别系统程序 报告
- c# 高校档案信息管理系统
- c#向word文件插入图片
- C#左侧导航菜单(动态生成)
评论
共有 条评论