⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 navigationframe.cs

📁 独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 
💻 CS
📖 第 1 页 / 共 5 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data;
namespace WindowsApplication
{
	public class navigationFrame : WindowsApplication.ModifyPasswordFrame
	{
		#region 控件声明...
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.PictureBox TitleImage;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.PictureBox ImageMoKuai;
		private System.Windows.Forms.PictureBox lowImage;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.PictureBox LeftImage;
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.PictureBox pictureBox2;
		private System.Windows.Forms.PictureBox pictureBox3;
		private System.Windows.Forms.PictureBox pictureBox4;
		private System.Windows.Forms.GroupBox KaoQinManageGroup;
		private System.Windows.Forms.GroupBox SystemManagerGroup;
		private System.Windows.Forms.PictureBox pictureBox5;
		private System.Windows.Forms.Label label15;
		private System.Windows.Forms.GroupBox userManagerGroup;
		private System.Windows.Forms.PictureBox pictureBox7;
		private System.Windows.Forms.Label label21;
		private System.Windows.Forms.PictureBox userManagerImage;
		private System.Windows.Forms.PictureBox userPopedomImage;
		public  System.Windows.Forms.Label userManagerLabel;
		public  System.Windows.Forms.Label UserPopedomLabel;
		private System.Windows.Forms.Label jishuzhichiTitle;
		private System.Windows.Forms.Label SystemManagerTitle;
		private System.Windows.Forms.Label userManagerTitle;
		private System.Windows.Forms.Label kaoQinManagerTitle;
		public System.Windows.Forms.Label SystemBackLabel;
		public System.Windows.Forms.Label SystemDesignLabel;
		public System.Windows.Forms.Label SystemRevertLabel;
		private System.Windows.Forms.PictureBox SystemPictureImage;
		private System.Windows.Forms.PictureBox pictureBox6;
		public System.Windows.Forms.Label KaoQinBackLabel;
		public System.Windows.Forms.Label kaoQinTongJiLabel;
		public System.Windows.Forms.Label usersManagerLabel;
		public System.Windows.Forms.Label QuXianLabel;
		public System.Windows.Forms.Label LeaveLabel;
		public System.Windows.Forms.Label lateLabel;
		public System.Windows.Forms.Label ZhaoTuiLabel;
		public System.Windows.Forms.Label KaoQinRiZhiLabel;
		public System.Windows.Forms.Label EmployeeLabel;
		public System.Windows.Forms.Timer startLoadQuanXian;
		private System.Windows.Forms.Timer modifyQuanXian;
		private System.Windows.Forms.MenuItem menuClose;
		private System.Windows.Forms.ContextMenu contextMenu;
		private ConnectionData conn=new ConnectionData();
		private System.Windows.Forms.ContextMenu context;
		private System.Windows.Forms.MenuItem menuMonth;
		private System.Windows.Forms.MenuItem menuDay;
		private System.Windows.Forms.ToolTip toolTip;
		private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter;
		private System.Data.SqlClient.SqlConnection sqlConnection;
		private System.ComponentModel.IContainer components;
		#endregion
		#region 变量初始化(定义)记录鼠标移动标志其位置...
		private bool blMove=false;
		private int MouseX,MouseY;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
		private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
		private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
		private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
		private System.Data.SqlClient.SqlConnection sqlConnection1;
		private string str="";
		#endregion
		#region 构造函数
		public navigationFrame()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}
		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}
#endregion
		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(navigationFrame));
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.pictureBox4 = new System.Windows.Forms.PictureBox();
			this.jishuzhichiTitle = new System.Windows.Forms.Label();
			this.pictureBox3 = new System.Windows.Forms.PictureBox();
			this.SystemManagerTitle = new System.Windows.Forms.Label();
			this.pictureBox2 = new System.Windows.Forms.PictureBox();
			this.userManagerTitle = new System.Windows.Forms.Label();
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.kaoQinManagerTitle = new System.Windows.Forms.Label();
			this.LeftImage = new System.Windows.Forms.PictureBox();
			this.KaoQinManageGroup = new System.Windows.Forms.GroupBox();
			this.KaoQinBackLabel = new System.Windows.Forms.Label();
			this.kaoQinTongJiLabel = new System.Windows.Forms.Label();
			this.context = new System.Windows.Forms.ContextMenu();
			this.menuMonth = new System.Windows.Forms.MenuItem();
			this.menuDay = new System.Windows.Forms.MenuItem();
			this.usersManagerLabel = new System.Windows.Forms.Label();
			this.QuXianLabel = new System.Windows.Forms.Label();
			this.LeaveLabel = new System.Windows.Forms.Label();
			this.lateLabel = new System.Windows.Forms.Label();
			this.ZhaoTuiLabel = new System.Windows.Forms.Label();
			this.KaoQinRiZhiLabel = new System.Windows.Forms.Label();
			this.EmployeeLabel = new System.Windows.Forms.Label();
			this.ImageMoKuai = new System.Windows.Forms.PictureBox();
			this.label1 = new System.Windows.Forms.Label();
			this.TitleImage = new System.Windows.Forms.PictureBox();
			this.SystemManagerGroup = new System.Windows.Forms.GroupBox();
			this.SystemRevertLabel = new System.Windows.Forms.Label();
			this.SystemDesignLabel = new System.Windows.Forms.Label();
			this.SystemBackLabel = new System.Windows.Forms.Label();
			this.pictureBox6 = new System.Windows.Forms.PictureBox();
			this.label15 = new System.Windows.Forms.Label();
			this.pictureBox5 = new System.Windows.Forms.PictureBox();
			this.userManagerGroup = new System.Windows.Forms.GroupBox();
			this.label21 = new System.Windows.Forms.Label();
			this.UserPopedomLabel = new System.Windows.Forms.Label();
			this.userManagerLabel = new System.Windows.Forms.Label();
			this.userPopedomImage = new System.Windows.Forms.PictureBox();
			this.userManagerImage = new System.Windows.Forms.PictureBox();
			this.pictureBox7 = new System.Windows.Forms.PictureBox();
			this.SystemPictureImage = new System.Windows.Forms.PictureBox();
			this.lowImage = new System.Windows.Forms.PictureBox();
			this.label11 = new System.Windows.Forms.Label();
			this.startLoadQuanXian = new System.Windows.Forms.Timer(this.components);
			this.modifyQuanXian = new System.Windows.Forms.Timer(this.components);
			this.contextMenu = new System.Windows.Forms.ContextMenu();
			this.menuClose = new System.Windows.Forms.MenuItem();
			this.toolTip = new System.Windows.Forms.ToolTip(this.components);
			this.sqlDataAdapter = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlConnection = new System.Data.SqlClient.SqlConnection();
			this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
			this.groupBox1.SuspendLayout();
			this.KaoQinManageGroup.SuspendLayout();
			this.SystemManagerGroup.SuspendLayout();
			this.userManagerGroup.SuspendLayout();
			this.SuspendLayout();
			// 
			// titleLabel
			// 
			this.titleLabel.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.titleLabel.ContextMenu = this.contextMenu;
			this.titleLabel.Location = new System.Drawing.Point(-32, 0);
			this.titleLabel.Name = "titleLabel";
			this.titleLabel.Size = new System.Drawing.Size(742, 56);
			this.titleLabel.Text = "导航栏";
			this.toolTip.SetToolTip(this.titleLabel, "右键关闭窗体");
			this.titleLabel.MouseUp += new System.Windows.Forms.MouseEventHandler(this.titleLabel_MouseUp);
			this.titleLabel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.titleLabel_MouseMove);
			this.titleLabel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.titleLabel_MouseDown);
			// 
			// groupBox1
			// 
			this.groupBox1.BackColor = System.Drawing.SystemColors.Desktop;
			this.groupBox1.Controls.Add(this.pictureBox4);
			this.groupBox1.Controls.Add(this.jishuzhichiTitle);
			this.groupBox1.Controls.Add(this.pictureBox3);
			this.groupBox1.Controls.Add(this.SystemManagerTitle);
			this.groupBox1.Controls.Add(this.pictureBox2);
			this.groupBox1.Controls.Add(this.userManagerTitle);
			this.groupBox1.Controls.Add(this.pictureBox1);
			this.groupBox1.Controls.Add(this.kaoQinManagerTitle);
			this.groupBox1.Controls.Add(this.LeftImage);
			this.groupBox1.Location = new System.Drawing.Point(0, 56);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(136, 408);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			// 
			// pictureBox4
			// 
			this.pictureBox4.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox4.Image")));
			this.pictureBox4.Location = new System.Drawing.Point(8, 152);
			this.pictureBox4.Name = "pictureBox4";
			this.pictureBox4.Size = new System.Drawing.Size(16, 32);
			this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
			this.pictureBox4.TabIndex = 20;
			this.pictureBox4.TabStop = false;
			// 
			// jishuzhichiTitle
			// 
			this.jishuzhichiTitle.BackColor = System.Drawing.Color.Teal;
			this.jishuzhichiTitle.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.jishuzhichiTitle.Font = new System.Drawing.Font("Verdana", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.jishuzhichiTitle.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.jishuzhichiTitle.Image = ((System.Drawing.Image)(resources.GetObject("jishuzhichiTitle.Image")));
			this.jishuzhichiTitle.Location = new System.Drawing.Point(32, 160);
			this.jishuzhichiTitle.Name = "jishuzhichiTitle";
			this.jishuzhichiTitle.Size = new System.Drawing.Size(80, 24);
			this.jishuzhichiTitle.TabIndex = 19;
			this.jishuzhichiTitle.Text = "技术支持";
			this.jishuzhichiTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.jishuzhichiTitle.Click += new System.EventHandler(this.jishuzhichiTitle_Click);
			this.jishuzhichiTitle.MouseEnter += new System.EventHandler(this.jishuzhichiTitle_MouseEnter);
			this.jishuzhichiTitle.MouseLeave += new System.EventHandler(this.jishuzhichiTitle_MouseLeave);
			// 
			// pictureBox3
			// 
			this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox3.Image")));
			this.pictureBox3.Location = new System.Drawing.Point(8, 104);
			this.pictureBox3.Name = "pictureBox3";
			this.pictureBox3.Size = new System.Drawing.Size(16, 32);
			this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
			this.pictureBox3.TabIndex = 18;
			this.pictureBox3.TabStop = false;
			// 
			// SystemManagerTitle
			// 
			this.SystemManagerTitle.BackColor = System.Drawing.Color.Teal;
			this.SystemManagerTitle.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.SystemManagerTitle.Font = new System.Drawing.Font("Verdana", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.SystemManagerTitle.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.SystemManagerTitle.Image = ((System.Drawing.Image)(resources.GetObject("SystemManagerTitle.Image")));
			this.SystemManagerTitle.Location = new System.Drawing.Point(32, 112);
			this.SystemManagerTitle.Name = "SystemManagerTitle";
			this.SystemManagerTitle.Size = new System.Drawing.Size(80, 24);
			this.SystemManagerTitle.TabIndex = 17;
			this.SystemManagerTitle.Text = "系统管理";
			this.SystemManagerTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.SystemManagerTitle.Click += new System.EventHandler(this.SystemManagerTitle_Click);
			this.SystemManagerTitle.MouseEnter += new System.EventHandler(this.SystemManagerTitle_MouseEnter);
			this.SystemManagerTitle.MouseLeave += new System.EventHandler(this.SystemManagerTitle_MouseLeave);
			// 
			// pictureBox2
			// 
			this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
			this.pictureBox2.Location = new System.Drawing.Point(8, 56);
			this.pictureBox2.Name = "pictureBox2";
			this.pictureBox2.Size = new System.Drawing.Size(16, 32);
			this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
			this.pictureBox2.TabIndex = 16;
			this.pictureBox2.TabStop = false;
			// 
			// userManagerTitle
			// 
			this.userManagerTitle.BackColor = System.Drawing.Color.Teal;
			this.userManagerTitle.FlatStyle = System.Windows.Forms.FlatStyle.Flat;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -