资源简介
☆☆ 资源说明:☆☆
☆ 系统功能:☆
系统采用人机交互的方式,界面美观友好,信息查询灵活、方便,数据存储安全可靠;
实现对餐厅顾客开台、点菜/加菜、账目查询和结账等操作;
对用户输入的数据,进行严格的数据检验,尽可能的避免人为错误;
实现对消费账目自动结算;
实现对消费的历史记录进行查询,支持模糊查询;
系统应最大限度地实现易维护性和易操作性;
代码片段和文件信息
using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace MrCy
{
partial class AboutBox1 : Form
{
public AboutBox1()
{
InitializeComponent();
// 初始化 AboutBox 以显示程序集信息中包含的产品信息。
// 也可以通过以下方法更改应用程序的程序集信息设置:
// - 项目->属性->应用程序->程序集信息
// - AssemblyInfo.cs
Text = String.Format(“关于 {0}“ Assemblytitle);
labelProductName.Text = AssemblyProduct;
labelVersion.Text = String.Format(“版本 {0}“ AssemblyVersion);
labelCopyright.Text = AssemblyCopyright;
labelCompanyName.Text = AssemblyCompany;
textBoxDescription.Text = AssemblyDescription;
}
#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 Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
}
}
public string AssemblyVersion
{
get { return Assembly.GetExecutingAssembly().GetName().Version.ToString(); }
}
public string AssemblyDescription
{
get
{
// 获取此程序集的所有 Description 属性
object[] attributes =
Assembly.GetExecutingAssembly().GetCustomAttributes(typeof (AssemblyDescriptionAttribute) false);
// 如果 Description 属性不存在,则返回一个空字符串
if (attributes.Length == 0)
return ““;
// 如果有 Description 属性,则返回该属性的值
return ((AssemblyDescriptionAttribute) attributes[0]).Description;
}
}
public string AssemblyProduct
{
get
{
// 获取此程序集上的所有 Product 属性
object[] attributes =
Assembly.GetExecutingAssembly().GetCustomAttributes(typeof (AssemblyProductAttribute) false);
// 如果 Product 属性不存在,则返回一个空字符串
if (attributes.Length == 0)
return ““;
// 如果有 Product 属性,则返回该属性的值
return ((AssemblyProductAttribute) attributes[0]).Product;
}
}
public string AssemblyCopyright
{
相关资源
- C# TIP文件生成和拆解
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- 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#版保龄球记分代码
川公网安备 51152502000135号
评论
共有 条评论