资源简介
c#实现office 2007风格的界面菜单风格的应用程序

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using MoreBeautiful.BLL;
using MoreBeautiful.Model;
using MoreBeautiful.Common;
using DevComponents.DotNetBar;
/************************************************************
软件作者: Steven Xiao
博客园blog: http://www.cnblogs.com/xiaoxijin
QQ:345778968
Gtalk: XiJinXiao@Gmail.com
MSN: LiveXiao@Hotmail.com
备注: 在工作之余承接.net项目(asp.net网站C#应该程序)如有需要欢迎洽谈
************************************************************/
namespace MoreBeautiful
{
public partial class frmLogin : Office2007Form
{
public frmLogin()
{
InitializeComponent();
}
///
/// 登录按钮事件
///
///
///
private void btnLogin_Click(object sender EventArgs e)
{
string username = ““;
string password = ““;
#region 用户登录检测
if (!String.IsNullOrEmpty(txtUsername.Text.Trim()))
{
username = txtUsername.Text.Trim();
}
else
{
MessageBoxEx.Show(“请输入登录用户名“ “登录提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
return;
}
if (!String.IsNullOrEmpty(txtPassword.Text.Trim()))
{
password = txtPassword.Text.Trim();
}
else if (username.ToLower() == “admin“)//其它用户允许空密码
{
MessageBoxEx.Show(“请输入登录密码“ “登录提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
return;
}
#endregion
#region 用户登录判断
AdminInfo admininfo = new AdminInfo();
admininfo.Username = username;
admininfo.Password = password;
admininfo = AdminUser.CheckUserLogin(admininfo);
if (admininfo != null)
{
if (admininfo.Password != password)
{
MessageBoxEx.Show(“登录的密码错误请重试“ “系统提示“ MessageBoxButtons.OK MessageBoxIcon.Error);
return;
}
if (!admininfo.IsEnable)
{
MessageBoxEx.Show(“该用户已被超级管理员锁定“ “系统提示“ MessageBoxButtons.OK MessageBoxIcon.Error);
return;
}
//登录通过验证后就把用户名等相关信息传过去
frmMain.UserName = username;
frmMain.AdminName = admininfo.Adminname;
frmMain.IsSuper = admininfo.IsSuper;
this.DialogResult = DialogResult.OK;
this.Close();
}
else
{
MessageBoxEx.Show(“该用户在系统中不存在“ “系统提示“ Mess
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3222016 2008-08-08 08:08 Lib\DevComponents.DotNetBar2.dll
文件 5574 2009-03-10 19:29 MoreBeautiful\Admin\frmAddManager.cs
文件 16878 2009-01-01 14:39 MoreBeautiful\Admin\frmAddManager.Designer.cs
文件 7730 2009-01-01 14:39 MoreBeautiful\Admin\frmAddManager.resx
文件 6589 2009-03-10 19:29 MoreBeautiful\Admin\frmManageAdmin.cs
文件 9097 2009-01-07 20:35 MoreBeautiful\Admin\frmManageAdmin.Designer.cs
文件 7730 2009-01-07 20:35 MoreBeautiful\Admin\frmManageAdmin.resx
文件 5311 2009-03-10 19:29 MoreBeautiful\Admin\frmModifyManager.cs
文件 16049 2009-01-01 16:26 MoreBeautiful\Admin\frmModifyManager.Designer.cs
文件 7730 2009-01-01 16:26 MoreBeautiful\Admin\frmModifyManager.resx
文件 4355 2009-03-10 19:29 MoreBeautiful\Admin\frmModifyPWD.cs
文件 8551 2009-01-01 13:21 MoreBeautiful\Admin\frmModifyPWD.Designer.cs
文件 7730 2009-01-01 13:21 MoreBeautiful\Admin\frmModifyPWD.resx
文件 467 2009-01-08 19:16 MoreBeautiful\App.config
文件 1078 2008-12-24 19:23 MoreBeautiful\App.ico
文件 1078 2008-12-15 19:45 MoreBeautiful\AppIcon.ico
文件 3806 2009-03-10 19:29 MoreBeautiful\CustomerManage\frmAddPointSet.cs
文件 12743 2009-01-07 21:00 MoreBeautiful\CustomerManage\frmAddPointSet.Designer.cs
文件 7929 2009-01-07 21:00 MoreBeautiful\CustomerManage\frmAddPointSet.resx
文件 4044 2009-03-10 19:29 MoreBeautiful\CustomerManage\frmAddPurchase.cs
文件 13931 2009-01-07 20:58 MoreBeautiful\CustomerManage\frmAddPurchase.Designer.cs
文件 7730 2009-01-07 20:58 MoreBeautiful\CustomerManage\frmAddPurchase.resx
文件 4239 2009-03-10 19:29 MoreBeautiful\CustomerManage\frmModifyCustomer.cs
文件 16549 2008-12-30 21:14 MoreBeautiful\CustomerManage\frmModifyCustomer.Designer.cs
文件 7730 2008-12-30 21:14 MoreBeautiful\CustomerManage\frmModifyCustomer.resx
文件 4141 2009-03-10 19:29 MoreBeautiful\CustomerManage\frmModifyPointSet.cs
文件 12728 2009-01-07 21:01 MoreBeautiful\CustomerManage\frmModifyPointSet.Designer.cs
文件 7929 2009-01-07 21:01 MoreBeautiful\CustomerManage\frmModifyPointSet.resx
文件 7730 2008-12-26 20:00 MoreBeautiful\CustomerManage\frmPointSetting.resx
文件 1593344 2009-01-08 19:25 MoreBeautiful\Databa
............此处省略165个文件信息
- 上一篇:大学羽协网站
- 下一篇:asp.net仓库管理系统
相关资源
- 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#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
评论
共有 条评论