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

📄 personal.cs

📁 个人信息管理系统
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Diagnostics;
namespace personal
{
	/// <summary>
	/// personal 的摘要说明。
	/// </summary>
	public class personalfrm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.MainMenu mmpersonal;
		private System.Windows.Forms.MenuItem mimessage;
		private System.Windows.Forms.MenuItem mimessagesee;
		private System.Windows.Forms.MenuItem mimessagewrite;
		private System.Windows.Forms.MenuItem mimessageedit;
		private System.Windows.Forms.MenuItem midiary;
		private System.Windows.Forms.MenuItem midiarywrite;
		private System.Windows.Forms.MenuItem midiaryedit;
		private System.Windows.Forms.MenuItem mimoney;
		private System.Windows.Forms.MenuItem mimoneysee;
		private System.Windows.Forms.MenuItem mimoneywrite;
		private System.Windows.Forms.MenuItem mimoneyedit;
		private System.Windows.Forms.MenuItem midesign;
		private System.Windows.Forms.MenuItem midesignsee;
		private System.Windows.Forms.MenuItem midesignwrite;
		private System.Windows.Forms.MenuItem midesignedit;
		private System.Windows.Forms.MenuItem mihelp;
		private System.Windows.Forms.MenuItem miexit;
		private System.Windows.Forms.ImageList imglistfast;
		private System.Windows.Forms.ToolBar tbfast;
		private System.Windows.Forms.ToolBarButton toolBarButton0;
		private System.Windows.Forms.ToolBarButton toolBarButton1;
		private System.Windows.Forms.ToolBarButton toolBarButton2;
		private System.Windows.Forms.ToolBarButton toolBarButton3;
		private System.Windows.Forms.ToolBarButton toolBarButton4;
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.ComponentModel.IContainer components;

		public personalfrm()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(personalfrm));
			this.mmpersonal = new System.Windows.Forms.MainMenu();
			this.mimessage = new System.Windows.Forms.MenuItem();
			this.mimessagesee = new System.Windows.Forms.MenuItem();
			this.mimessagewrite = new System.Windows.Forms.MenuItem();
			this.mimessageedit = new System.Windows.Forms.MenuItem();
			this.midiary = new System.Windows.Forms.MenuItem();
			this.midiarywrite = new System.Windows.Forms.MenuItem();
			this.midiaryedit = new System.Windows.Forms.MenuItem();
			this.mimoney = new System.Windows.Forms.MenuItem();
			this.mimoneysee = new System.Windows.Forms.MenuItem();
			this.mimoneywrite = new System.Windows.Forms.MenuItem();
			this.mimoneyedit = new System.Windows.Forms.MenuItem();
			this.midesign = new System.Windows.Forms.MenuItem();
			this.midesignsee = new System.Windows.Forms.MenuItem();
			this.midesignwrite = new System.Windows.Forms.MenuItem();
			this.midesignedit = new System.Windows.Forms.MenuItem();
			this.mihelp = new System.Windows.Forms.MenuItem();
			this.miexit = new System.Windows.Forms.MenuItem();
			this.imglistfast = new System.Windows.Forms.ImageList(this.components);
			this.tbfast = new System.Windows.Forms.ToolBar();
			this.toolBarButton0 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.SuspendLayout();
			// 
			// mmpersonal
			// 
			this.mmpersonal.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.mimessage,
																					   this.midiary,
																					   this.mimoney,
																					   this.midesign,
																					   this.mihelp,
																					   this.miexit});
			// 
			// mimessage
			// 
			this.mimessage.Index = 0;
			this.mimessage.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.mimessagesee,
																					  this.mimessagewrite,
																					  this.mimessageedit});
			this.mimessage.Text = "个人信息(&F)";
			// 
			// mimessagesee
			// 
			this.mimessagesee.Index = 0;
			this.mimessagesee.Text = "我的信息";
			// 
			// mimessagewrite
			// 
			this.mimessagewrite.Index = 1;
			this.mimessagewrite.Text = "信息录入";
			this.mimessagewrite.Click += new System.EventHandler(this.mimessagewrite_Click);
			// 
			// mimessageedit
			// 
			this.mimessageedit.Index = 2;
			this.mimessageedit.Text = "信息编辑";
			// 
			// midiary
			// 
			this.midiary.Index = 1;
			this.midiary.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.midiarywrite,
																					this.midiaryedit});
			this.midiary.Text = "心心物语(&S)";
			// 
			// midiarywrite
			// 
			this.midiarywrite.Index = 0;
			this.midiarywrite.Text = "信息录入 ";
			this.midiarywrite.Click += new System.EventHandler(this.midiarywrite_Click);
			// 
			// midiaryedit
			// 
			this.midiaryedit.Index = 1;
			this.midiaryedit.Text = "信息编辑";
			this.midiaryedit.Click += new System.EventHandler(this.midiaryedit_Click);
			// 
			// mimoney
			// 
			this.mimoney.Index = 2;
			this.mimoney.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.mimoneysee,
																					this.mimoneywrite,
																					this.mimoneyedit});
			this.mimoney.Text = "财务管理(&M)";
			// 
			// mimoneysee
			// 
			this.mimoneysee.Index = 0;
			this.mimoneysee.Text = "财务浏览";
			// 
			// mimoneywrite
			// 
			this.mimoneywrite.Index = 1;
			this.mimoneywrite.Text = "信息录入";
			// 
			// mimoneyedit
			// 
			this.mimoneyedit.Index = 2;
			this.mimoneyedit.Text = "信息编辑";
			// 
			// midesign
			// 
			this.midesign.Index = 3;
			this.midesign.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					 this.midesignsee,
																					 this.midesignwrite,
																					 this.midesignedit});
			this.midesign.Text = "我的计划(&D)";
			// 
			// midesignsee
			// 
			this.midesignsee.Index = 0;
			this.midesignsee.Text = "计划浏览";
			// 
			// midesignwrite
			// 
			this.midesignwrite.Index = 1;
			this.midesignwrite.Text = "信息录入";
			// 
			// midesignedit
			// 
			this.midesignedit.Index = 2;
			this.midesignedit.Text = "信息编辑";
			// 
			// mihelp
			// 
			this.mihelp.Index = 4;
			this.mihelp.Text = "系统帮助(&H)";
			// 
			// miexit
			// 
			this.miexit.Index = 5;
			this.miexit.Text = "退出系统(&X)";
			// 
			// imglistfast
			// 
			this.imglistfast.ImageSize = new System.Drawing.Size(16, 16);
			this.imglistfast.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imglistfast.ImageStream")));
			this.imglistfast.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// tbfast
			// 
			this.tbfast.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																					  this.toolBarButton0,
																					  this.toolBarButton1,
																					  this.toolBarButton2,
																					  this.toolBarButton3,
																					  this.toolBarButton4});
			this.tbfast.ButtonSize = new System.Drawing.Size(50, 50);
			this.tbfast.DropDownArrows = true;
			this.tbfast.ImageList = this.imglistfast;
			this.tbfast.Location = new System.Drawing.Point(0, 0);
			this.tbfast.Name = "tbfast";
			this.tbfast.ShowToolTips = true;
			this.tbfast.Size = new System.Drawing.Size(590, 56);
			this.tbfast.TabIndex = 0;
			this.tbfast.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tbfast_ButtonClick_1);
			// 
			// toolBarButton0
			// 
			this.toolBarButton0.ImageIndex = 0;
			this.toolBarButton0.Text = "关于";
			// 
			// toolBarButton1
			// 
			this.toolBarButton1.ImageIndex = 1;
			this.toolBarButton1.Text = "最小化";
			// 
			// toolBarButton2
			// 
			this.toolBarButton2.ImageIndex = 2;
			this.toolBarButton2.Text = "注销";
			// 
			// toolBarButton3
			// 
			this.toolBarButton3.ImageIndex = 3;
			this.toolBarButton3.Text = "退出 ";
			// 
			// toolBarButton4
			// 
			this.toolBarButton4.ImageIndex = 4;
			this.toolBarButton4.Text = "Bug";
			// 
			// pictureBox1
			// 
			this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
			this.pictureBox1.Location = new System.Drawing.Point(248, 0);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(344, 50);
			this.pictureBox1.TabIndex = 2;
			this.pictureBox1.TabStop = false;
			// 
			// personalfrm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(235)), ((System.Byte)(246)), ((System.Byte)(255)));
			this.ClientSize = new System.Drawing.Size(590, 423);
			this.Controls.Add(this.pictureBox1);
			this.Controls.Add(this.tbfast);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.IsMdiContainer = true;
			this.MaximizeBox = false;
			this.Menu = this.mmpersonal;
			this.Name = "personalfrm";
			this.Text = "个人信息管理系统";
			this.ResumeLayout(false);

		}
		#endregion

		private void mimessagewrite_Click(object sender, System.EventArgs e)
		{
			messagewrite mymessagewrite = new messagewrite();
			mymessagewrite.MdiParent = this;
			mymessagewrite.Show();
		}

		private void tbfast_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
			Application.Exit();
		}

		private void tbfast_ButtonClick_1(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
			if(e.Button==toolBarButton0)
			{
				new messagefrm().Show();
				this.Hide();
			}
			if(e.Button==toolBarButton1)
			{
				WindowState = FormWindowState.Minimized;
				this.Hide();
			}
			if(e.Button==toolBarButton2)
			{
				new login().Show();
				this.Hide();
			}
			if(e.Button==toolBarButton3)
			{
				Application.Exit();
			}
			if(e.Button==toolBarButton4)
			{
				ProcessStartInfo startInfo = new ProcessStartInfo("IExplore.exe");
				startInfo.WindowStyle = ProcessWindowStyle.Maximized;
				startInfo.Arguments = "http://www.timeflying.info";
				Process.Start(startInfo);
			}

		}

		private void midiarywrite_Click(object sender, System.EventArgs e)
		{
			diarywrite mydiarywrite=new diarywrite();
			mydiarywrite.Show();
			mydiarywrite.MdiParent=this;
		}

		private void midiarysee_Click(object sender, System.EventArgs e)
		{
			diary mydiary=new diary();
			mydiary.Show();
			mydiary.MdiParent=this;
		}

		private void midiaryedit_Click(object sender, System.EventArgs e)
		{
			diary mydiary=new diary();
			mydiary.Show();
			mydiary.MdiParent=this;
		}


	}
}

⌨️ 快捷键说明

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