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

📄 frmmain.cs

📁 个人信息的源代码
💻 CS
📖 第 1 页 / 共 5 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using DataAccessLayer;
using Utilities;
using System.IO;
using PublicUIComponent;

namespace PersonalInfo
{
	/// <summary>
	/// frmMain 的摘要说明。
	/// </summary>
	public class frmMain : System.Windows.Forms.Form
	{
		#region Windows 窗体设计器生成的代码

		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.Panel panel3;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.MainMenu mainMenu1;
		private System.Windows.Forms.MenuItem mnuSystem;
		private System.Windows.Forms.MenuItem mnuExit;
		private System.Windows.Forms.MenuItem mnuTools;
		private System.Windows.Forms.MenuItem mnuBackup;
		private System.Windows.Forms.MenuItem mnuRestore;
		private System.Windows.Forms.MenuItem mnuCompressDB;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem2;
		private System.Windows.Forms.MenuItem mnuOption;
		private System.Windows.Forms.ToolBar toolBar1;
		private System.Windows.Forms.Splitter splitter1;
		private System.Windows.Forms.Panel panel2;
		internal System.Windows.Forms.ImageList ImageListTreeNode;
		internal System.Windows.Forms.ImageList ImageListSystemFunc;
		private System.Windows.Forms.ToolBarButton btnExit;
		private System.Windows.Forms.ToolBarButton toolBarButton1;
		private System.Windows.Forms.ToolBarButton btnBack;
		private System.Windows.Forms.ToolBarButton btnForward;
		private System.Windows.Forms.ToolBarButton toolBarButton2;
		private System.Windows.Forms.ToolBarButton btnAddNode;
		private System.Windows.Forms.ContextMenu ctxAddChildNode;
		private System.Windows.Forms.ToolBarButton btnRename;
		private System.Windows.Forms.ToolBarButton btnDeleteNode;
		private System.Windows.Forms.ToolBarButton btnMoveUp;
		private System.Windows.Forms.ToolBarButton btnMoveDown;
		private System.Windows.Forms.ToolBarButton btnMoveRight;
		private System.Windows.Forms.ToolBarButton btnMoveLeft;
		private System.Windows.Forms.ToolBarButton btnFindNode;
		private System.Windows.Forms.ToolBarButton toolBarButton3;
		private System.Windows.Forms.Panel panel4;
		private System.Windows.Forms.Splitter splitter2;
		private System.Windows.Forms.Panel pnlWorkPlace;
		private PublicUIComponent.SuperTreeView superTreeView1;
		private System.Windows.Forms.OpenFileDialog openFileDialog1;
		private System.Windows.Forms.SaveFileDialog saveFileDialog1;
		private System.Windows.Forms.ContextMenu ctxTreeOpt;
		private System.Windows.Forms.MenuItem mnuAddChildText;
		private System.Windows.Forms.MenuItem mnuAddChildDetail;
		private System.Windows.Forms.MenuItem mnuAddChildFile;
		private System.Windows.Forms.MenuItem mnuAddChildFolder;
		private System.Windows.Forms.MenuItem mnuAddChildPicLib;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem mnuAddBrotherText;
		private System.Windows.Forms.MenuItem mnuAddBrotherDetail;
		private System.Windows.Forms.MenuItem mnuAddBrotherFile;
		private System.Windows.Forms.MenuItem mnuAddBrotherFolder;
		private System.Windows.Forms.MenuItem mnuAddBrotherPicLib;
		private System.Windows.Forms.MenuItem mnuCopyNodeText;
		private System.Windows.Forms.MenuItem mnuExpandAllSubTree;
		private System.Windows.Forms.MenuItem menuItem4;
		private System.Windows.Forms.MenuItem mnuCutNode;
		private System.Windows.Forms.MenuItem mnuPasteNode;
		private System.Windows.Forms.MenuItem menuItem5;
		private System.Windows.Forms.MenuItem mnuAddChild;
		private System.Windows.Forms.MenuItem mnuAddChildDetailTextNode;
		private System.Windows.Forms.MenuItem mnuAddChildOnlyFileNode;
		private System.Windows.Forms.MenuItem mnuAddChildFolderNode;
		private System.Windows.Forms.MenuItem mnuAddChildOnlyTextNode;
		private System.Windows.Forms.MenuItem mnuAddChildPicLibNode;
		private System.Windows.Forms.MenuItem mnuAddBrother;
		private System.Windows.Forms.MenuItem mnuAddBrotherDetailTextNode;
		private System.Windows.Forms.MenuItem mnuAddBrotherOnlyFileNode;
		private System.Windows.Forms.MenuItem mnuAddBrotherFolderNode;
		private System.Windows.Forms.MenuItem mnuAddBrotherOnlyTextNode;
		private System.Windows.Forms.MenuItem mnuAddBrotherPicLibNode;
		private System.Windows.Forms.MenuItem mnuAddFirstLevel;
		private System.Windows.Forms.MenuItem mnuAddFirstLevelDetail;
		private System.Windows.Forms.MenuItem mnuAddFirstLevelFile;
		private System.Windows.Forms.MenuItem mnuAddFirstLevelFolder;
		private System.Windows.Forms.MenuItem mnuAddFirstLevelText;
		private System.Windows.Forms.MenuItem mnuAddFirstLevelPicLib;
		private System.Windows.Forms.MenuItem mnuDeleteNode;
		private System.Windows.Forms.MenuItem mnuRenameNode;
		private System.Windows.Forms.MenuItem menuItem6;
		private System.Windows.Forms.MenuItem mnuNodeMoveUp;
		private System.Windows.Forms.MenuItem mnuNodeMoveDown;
		private System.Windows.Forms.MenuItem mnuNodeMoveLeft;
		private System.Windows.Forms.MenuItem mnuNodeMoveRight;
		private System.ComponentModel.IContainer components;

		public frmMain()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();
			Init();
			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

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

		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmMain));
			this.panel1 = new System.Windows.Forms.Panel();
			this.toolBar1 = new System.Windows.Forms.ToolBar();
			this.btnExit = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
			this.btnBack = new System.Windows.Forms.ToolBarButton();
			this.btnForward = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
			this.btnAddNode = new System.Windows.Forms.ToolBarButton();
			this.ctxAddChildNode = new System.Windows.Forms.ContextMenu();
			this.mnuAddChildText = new System.Windows.Forms.MenuItem();
			this.mnuAddChildDetail = new System.Windows.Forms.MenuItem();
			this.mnuAddChildFile = new System.Windows.Forms.MenuItem();
			this.mnuAddChildFolder = new System.Windows.Forms.MenuItem();
			this.mnuAddChildPicLib = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.mnuAddBrotherText = new System.Windows.Forms.MenuItem();
			this.mnuAddBrotherDetail = new System.Windows.Forms.MenuItem();
			this.mnuAddBrotherFile = new System.Windows.Forms.MenuItem();
			this.mnuAddBrotherFolder = new System.Windows.Forms.MenuItem();
			this.mnuAddBrotherPicLib = new System.Windows.Forms.MenuItem();
			this.btnRename = new System.Windows.Forms.ToolBarButton();
			this.btnDeleteNode = new System.Windows.Forms.ToolBarButton();
			this.btnMoveUp = new System.Windows.Forms.ToolBarButton();
			this.btnMoveDown = new System.Windows.Forms.ToolBarButton();
			this.btnMoveLeft = new System.Windows.Forms.ToolBarButton();
			this.btnMoveRight = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
			this.btnFindNode = new System.Windows.Forms.ToolBarButton();
			this.ImageListSystemFunc = new System.Windows.Forms.ImageList(this.components);
			this.panel3 = new System.Windows.Forms.Panel();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.mnuSystem = new System.Windows.Forms.MenuItem();
			this.mnuExit = new System.Windows.Forms.MenuItem();
			this.mnuTools = new System.Windows.Forms.MenuItem();
			this.mnuBackup = new System.Windows.Forms.MenuItem();
			this.mnuRestore = new System.Windows.Forms.MenuItem();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.mnuCompressDB = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.mnuOption = new System.Windows.Forms.MenuItem();
			this.splitter1 = new System.Windows.Forms.Splitter();
			this.panel2 = new System.Windows.Forms.Panel();
			this.pnlWorkPlace = new System.Windows.Forms.Panel();
			this.splitter2 = new System.Windows.Forms.Splitter();
			this.panel4 = new System.Windows.Forms.Panel();
			this.superTreeView1 = new PublicUIComponent.SuperTreeView();
			this.ctxTreeOpt = new System.Windows.Forms.ContextMenu();
			this.mnuCopyNodeText = new System.Windows.Forms.MenuItem();
			this.mnuExpandAllSubTree = new System.Windows.Forms.MenuItem();
			this.menuItem4 = new System.Windows.Forms.MenuItem();
			this.mnuCutNode = new System.Windows.Forms.MenuItem();
			this.mnuPasteNode = new System.Windows.Forms.MenuItem();
			this.menuItem5 = new System.Windows.Forms.MenuItem();
			this.mnuAddChild = new System.Windows.Forms.MenuItem();
			this.mnuAddChildDetailTextNode = new System.Windows.Forms.MenuItem();
			this.mnuAddChildOnlyFileNode = new System.Windows.Forms.MenuItem();
			this.mnuAddChildFolderNode = new System.Windows.Forms.MenuItem();
			this.mnuAddChildOnlyTextNode = new System.Windows.Forms.MenuItem();
			this.mnuAddChildPicLibNode = new System.Windows.Forms.MenuItem();
			this.mnuAddBrother = new System.Windows.Forms.MenuItem();
			this.mnuAddBrotherDetailTextNode = new System.Windows.Forms.MenuItem();
			this.mnuAddBrotherOnlyFileNode = new System.Windows.Forms.MenuItem();
			this.mnuAddBrotherFolderNode = new System.Windows.Forms.MenuItem();
			this.mnuAddBrotherOnlyTextNode = new System.Windows.Forms.MenuItem();
			this.mnuAddBrotherPicLibNode = new System.Windows.Forms.MenuItem();
			this.mnuAddFirstLevel = new System.Windows.Forms.MenuItem();
			this.mnuAddFirstLevelDetail = new System.Windows.Forms.MenuItem();
			this.mnuAddFirstLevelFile = new System.Windows.Forms.MenuItem();
			this.mnuAddFirstLevelFolder = new System.Windows.Forms.MenuItem();
			this.mnuAddFirstLevelText = new System.Windows.Forms.MenuItem();
			this.mnuAddFirstLevelPicLib = new System.Windows.Forms.MenuItem();
			this.mnuDeleteNode = new System.Windows.Forms.MenuItem();
			this.mnuRenameNode = new System.Windows.Forms.MenuItem();
			this.menuItem6 = new System.Windows.Forms.MenuItem();
			this.mnuNodeMoveUp = new System.Windows.Forms.MenuItem();
			this.mnuNodeMoveDown = new System.Windows.Forms.MenuItem();
			this.mnuNodeMoveLeft = new System.Windows.Forms.MenuItem();
			this.mnuNodeMoveRight = new System.Windows.Forms.MenuItem();
			this.ImageListTreeNode = new System.Windows.Forms.ImageList(this.components);
			this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
			this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
			this.panel1.SuspendLayout();
			this.panel3.SuspendLayout();
			this.panel2.SuspendLayout();
			this.panel4.SuspendLayout();
			this.SuspendLayout();
			// 
			// panel1
			// 
			this.panel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel1.BackgroundImage")));
			this.panel1.Controls.Add(this.toolBar1);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(576, 40);
			this.panel1.TabIndex = 0;
			// 
			// toolBar1
			// 
			this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
			this.toolBar1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																						this.btnExit,
																						this.toolBarButton1,
																						this.btnBack,
																						this.btnForward,
																						this.toolBarButton2,
																						this.btnAddNode,
																						this.btnRename,
																						this.btnDeleteNode,
																						this.btnMoveUp,
																						this.btnMoveDown,
																						this.btnMoveLeft,
																						this.btnMoveRight,
																						this.toolBarButton3,
																						this.btnFindNode});
			this.toolBar1.ButtonSize = new System.Drawing.Size(39, 38);
			this.toolBar1.DropDownArrows = true;
			this.toolBar1.ImageList = this.ImageListSystemFunc;
			this.toolBar1.Location = new System.Drawing.Point(0, 0);
			this.toolBar1.Name = "toolBar1";
			this.toolBar1.ShowToolTips = true;
			this.toolBar1.Size = new System.Drawing.Size(576, 45);
			this.toolBar1.TabIndex = 0;
			this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
			// 
			// btnExit
			// 
			this.btnExit.ImageIndex = 0;
			this.btnExit.Tag = "Exit";
			this.btnExit.ToolTipText = "退出";
			// 
			// toolBarButton1
			// 
			this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			// 
			// btnBack
			// 
			this.btnBack.Enabled = false;
			this.btnBack.ImageIndex = 10;
			this.btnBack.Tag = "Back";
			this.btnBack.ToolTipText = "后退";
			// 
			// btnForward
			// 
			this.btnForward.Enabled = false;
			this.btnForward.ImageIndex = 11;
			this.btnForward.Tag = "Forward";
			this.btnForward.ToolTipText = "前进";
			// 
			// toolBarButton2
			// 
			this.toolBarButton2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			// 
			// btnAddNode
			// 
			this.btnAddNode.DropDownMenu = this.ctxAddChildNode;
			this.btnAddNode.ImageIndex = 1;
			this.btnAddNode.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
			this.btnAddNode.Tag = "AddChildNode";
			this.btnAddNode.ToolTipText = "增加详细信息型子节点";
			// 
			// ctxAddChildNode
			// 
			this.ctxAddChildNode.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																							this.mnuAddChildText,
																							this.mnuAddChildDetail,
																							this.mnuAddChildFile,
																							this.mnuAddChildFolder,
																							this.mnuAddChildPicLib,
																							this.menuItem3,
																							this.mnuAddBrotherText,
																							this.mnuAddBrotherDetail,
																							this.mnuAddBrotherFile,
																							this.mnuAddBrotherFolder,
																							this.mnuAddBrotherPicLib});
			// 
			// mnuAddChildText
			// 
			this.mnuAddChildText.Index = 0;
			this.mnuAddChildText.Text = "纯文本型(儿子)";
			this.mnuAddChildText.Click += new System.EventHandler(this.mnuAddChildOnlyTextNode_Click);
			// 
			// mnuAddChildDetail
			// 
			this.mnuAddChildDetail.Index = 1;
			this.mnuAddChildDetail.Text = "详细信息型(儿子)";
			this.mnuAddChildDetail.Click += new System.EventHandler(this.mnuAddChildDetailTextNode_Click);
			// 
			// mnuAddChildFile
			// 
			this.mnuAddChildFile.Index = 2;
			this.mnuAddChildFile.Text = "文件型(儿子)";
			this.mnuAddChildFile.Click += new System.EventHandler(this.mnuAddChildOnlyFileNode_Click);
			// 
			// mnuAddChildFolder
			// 
			this.mnuAddChildFolder.Index = 3;
			this.mnuAddChildFolder.Text = "文件夹型(儿子)";
			this.mnuAddChildFolder.Click += new System.EventHandler(this.mnuAddChildFolderNode_Click);
			// 
			// mnuAddChildPicLib
			// 
			this.mnuAddChildPicLib.Index = 4;
			this.mnuAddChildPicLib.Text = "图片型(儿子)";
			this.mnuAddChildPicLib.Click += new System.EventHandler(this.mnuAddChildPicLibNode_Click);
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 5;
			this.menuItem3.Text = "-";
			// 
			// mnuAddBrotherText
			// 
			this.mnuAddBrotherText.Index = 6;
			this.mnuAddBrotherText.Text = "纯文本型(兄弟)";
			this.mnuAddBrotherText.Click += new System.EventHandler(this.mnuAddBrotherOnlyTextNode_Click);
			// 
			// mnuAddBrotherDetail
			// 
			this.mnuAddBrotherDetail.Index = 7;
			this.mnuAddBrotherDetail.Text = "详细信息型(兄弟)";
			this.mnuAddBrotherDetail.Click += new System.EventHandler(this.mnuAddBrotherDetailTextNode_Click);
			// 
			// mnuAddBrotherFile
			// 
			this.mnuAddBrotherFile.Index = 8;
			this.mnuAddBrotherFile.Text = "文件型(兄弟)";
			this.mnuAddBrotherFile.Click += new System.EventHandler(this.mnuAddBrotherOnlyFileNode_Click);
			// 
			// mnuAddBrotherFolder
			// 

⌨️ 快捷键说明

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