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

📄 frmpiclib.cs

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

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

		public System.Windows.Forms.Panel pnlPicLib;
		private System.Windows.Forms.Panel panel2;
		private System.Windows.Forms.Splitter splitter1;
		private PublicUIComponent.SuperListBox lstFiles;
		private PublicUIComponent.SuperRichTextBox txtPicNotes;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.ToolBar toolBar1;
		private System.Windows.Forms.SaveFileDialog saveFileDialog1;
		private System.Windows.Forms.OpenFileDialog openFileDialog1;
		private System.Drawing.Printing.PrintDocument printDocument1;
		internal System.Windows.Forms.ImageList ImageList1;
		private System.Windows.Forms.ContextMenu ctxPicOpt;
		private System.Windows.Forms.MenuItem cmnuAutoSize;
		private System.Windows.Forms.MenuItem cmnuStretch;
		private System.Windows.Forms.ToolBarButton toolBarButton1;
		private System.Windows.Forms.ToolBarButton tbtnPrevPic;
		private System.Windows.Forms.ToolBarButton tbtnNextPic;
		private System.Windows.Forms.ToolBarButton toolBarButton2;
		private System.Windows.Forms.ToolBarButton tbtnAddPic;
		private System.Windows.Forms.ToolBarButton tbtnDelPic;
		private System.Windows.Forms.ToolBarButton toolBarButton3;
		private System.Windows.Forms.ToolBarButton tbtnExportPic;
		private System.Windows.Forms.ToolBarButton toolBarButton4;
		private System.Windows.Forms.ToolBarButton tbtnPicSizeMode;
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.TabControl tabControl1;
		private System.Windows.Forms.TabPage tbpPictureView;
		private System.Windows.Forms.Panel pnlPicView;
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.TabPage tbpAlbumsDescription;
		private System.Windows.Forms.LinkLabel lnkClearFormat;
		private System.Windows.Forms.LinkLabel lnkMoveToBegin;
		private System.Windows.Forms.LinkLabel lnkMoveToEnd;
		private System.Windows.Forms.LinkLabel lnkZoomIn;
		private System.Windows.Forms.LinkLabel lnkPrint;
		private System.Windows.Forms.LinkLabel lnkSave;
		private System.Windows.Forms.LinkLabel lnkSetBold;
		private System.Windows.Forms.LinkLabel lnkItalic;
		private System.Windows.Forms.LinkLabel lnkFontSizeUp;
		private System.Windows.Forms.LinkLabel lnkFontSizeDown;
		private System.Windows.Forms.LinkLabel lnkSelectFont;
		private System.Windows.Forms.LinkLabel lnkCut;
		private System.Windows.Forms.LinkLabel lnkCopy;
		private System.Windows.Forms.LinkLabel lnkPaste;
		private System.Windows.Forms.LinkLabel lnkSelectAll;
		private System.Windows.Forms.LinkLabel lnkFind;
		private System.Windows.Forms.Label label3;
		private PublicUIComponent.SuperRichTextBox txtComment;
		private System.ComponentModel.IContainer components;

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

			//
			// 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(frmPicLib));
			this.pnlPicLib = new System.Windows.Forms.Panel();
			this.panel1 = new System.Windows.Forms.Panel();
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tbpPictureView = new System.Windows.Forms.TabPage();
			this.pnlPicView = new System.Windows.Forms.Panel();
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.tbpAlbumsDescription = new System.Windows.Forms.TabPage();
			this.lnkClearFormat = new System.Windows.Forms.LinkLabel();
			this.lnkMoveToBegin = new System.Windows.Forms.LinkLabel();
			this.lnkMoveToEnd = new System.Windows.Forms.LinkLabel();
			this.lnkZoomIn = new System.Windows.Forms.LinkLabel();
			this.lnkPrint = new System.Windows.Forms.LinkLabel();
			this.lnkSave = new System.Windows.Forms.LinkLabel();
			this.lnkSetBold = new System.Windows.Forms.LinkLabel();
			this.lnkItalic = new System.Windows.Forms.LinkLabel();
			this.lnkFontSizeUp = new System.Windows.Forms.LinkLabel();
			this.lnkFontSizeDown = new System.Windows.Forms.LinkLabel();
			this.lnkSelectFont = new System.Windows.Forms.LinkLabel();
			this.lnkCut = new System.Windows.Forms.LinkLabel();
			this.lnkCopy = new System.Windows.Forms.LinkLabel();
			this.lnkPaste = new System.Windows.Forms.LinkLabel();
			this.lnkSelectAll = new System.Windows.Forms.LinkLabel();
			this.lnkFind = new System.Windows.Forms.LinkLabel();
			this.label3 = new System.Windows.Forms.Label();
			this.txtComment = new PublicUIComponent.SuperRichTextBox();
			this.splitter1 = new System.Windows.Forms.Splitter();
			this.panel2 = new System.Windows.Forms.Panel();
			this.toolBar1 = new System.Windows.Forms.ToolBar();
			this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
			this.tbtnPrevPic = new System.Windows.Forms.ToolBarButton();
			this.tbtnNextPic = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
			this.tbtnAddPic = new System.Windows.Forms.ToolBarButton();
			this.tbtnDelPic = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
			this.tbtnExportPic = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
			this.tbtnPicSizeMode = new System.Windows.Forms.ToolBarButton();
			this.ctxPicOpt = new System.Windows.Forms.ContextMenu();
			this.cmnuAutoSize = new System.Windows.Forms.MenuItem();
			this.cmnuStretch = new System.Windows.Forms.MenuItem();
			this.ImageList1 = new System.Windows.Forms.ImageList(this.components);
			this.label1 = new System.Windows.Forms.Label();
			this.txtPicNotes = new PublicUIComponent.SuperRichTextBox();
			this.lstFiles = new PublicUIComponent.SuperListBox();
			this.label2 = new System.Windows.Forms.Label();
			this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
			this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
			this.printDocument1 = new System.Drawing.Printing.PrintDocument();
			this.pnlPicLib.SuspendLayout();
			this.panel1.SuspendLayout();
			this.tabControl1.SuspendLayout();
			this.tbpPictureView.SuspendLayout();
			this.pnlPicView.SuspendLayout();
			this.tbpAlbumsDescription.SuspendLayout();
			this.panel2.SuspendLayout();
			this.SuspendLayout();
			// 
			// pnlPicLib
			// 
			this.pnlPicLib.Controls.Add(this.panel1);
			this.pnlPicLib.Controls.Add(this.splitter1);
			this.pnlPicLib.Controls.Add(this.panel2);
			this.pnlPicLib.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlPicLib.Location = new System.Drawing.Point(0, 0);
			this.pnlPicLib.Name = "pnlPicLib";
			this.pnlPicLib.Size = new System.Drawing.Size(640, 406);
			this.pnlPicLib.TabIndex = 0;
			this.pnlPicLib.VisibleChanged += new System.EventHandler(this.pnlPicLib_VisibleChanged);
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.tabControl1);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(640, 214);
			this.panel1.TabIndex = 3;
			// 
			// tabControl1
			// 
			this.tabControl1.Appearance = System.Windows.Forms.TabAppearance.FlatButtons;
			this.tabControl1.Controls.Add(this.tbpPictureView);
			this.tabControl1.Controls.Add(this.tbpAlbumsDescription);
			this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.tabControl1.Location = new System.Drawing.Point(0, 0);
			this.tabControl1.Multiline = true;
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(640, 214);
			this.tabControl1.TabIndex = 1;
			// 
			// tbpPictureView
			// 
			this.tbpPictureView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbpPictureView.Controls.Add(this.pnlPicView);
			this.tbpPictureView.Location = new System.Drawing.Point(4, 24);
			this.tbpPictureView.Name = "tbpPictureView";
			this.tbpPictureView.Size = new System.Drawing.Size(632, 186);
			this.tbpPictureView.TabIndex = 0;
			this.tbpPictureView.Text = "查看图片";
			// 
			// pnlPicView
			// 
			this.pnlPicView.BackColor = System.Drawing.Color.White;
			this.pnlPicView.Controls.Add(this.pictureBox1);
			this.pnlPicView.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlPicView.Location = new System.Drawing.Point(0, 0);
			this.pnlPicView.Name = "pnlPicView";
			this.pnlPicView.Size = new System.Drawing.Size(630, 184);
			this.pnlPicView.TabIndex = 0;
			// 
			// pictureBox1
			// 
			this.pictureBox1.BackColor = System.Drawing.Color.White;
			this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pictureBox1.Location = new System.Drawing.Point(0, 0);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(596, 160);
			this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
			this.pictureBox1.TabIndex = 1;
			this.pictureBox1.TabStop = false;
			// 
			// tbpAlbumsDescription
			// 
			this.tbpAlbumsDescription.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbpAlbumsDescription.Controls.Add(this.lnkClearFormat);
			this.tbpAlbumsDescription.Controls.Add(this.lnkMoveToBegin);
			this.tbpAlbumsDescription.Controls.Add(this.lnkMoveToEnd);
			this.tbpAlbumsDescription.Controls.Add(this.lnkZoomIn);
			this.tbpAlbumsDescription.Controls.Add(this.lnkPrint);
			this.tbpAlbumsDescription.Controls.Add(this.lnkSave);
			this.tbpAlbumsDescription.Controls.Add(this.lnkSetBold);
			this.tbpAlbumsDescription.Controls.Add(this.lnkItalic);
			this.tbpAlbumsDescription.Controls.Add(this.lnkFontSizeUp);
			this.tbpAlbumsDescription.Controls.Add(this.lnkFontSizeDown);
			this.tbpAlbumsDescription.Controls.Add(this.lnkSelectFont);
			this.tbpAlbumsDescription.Controls.Add(this.lnkCut);
			this.tbpAlbumsDescription.Controls.Add(this.lnkCopy);
			this.tbpAlbumsDescription.Controls.Add(this.lnkPaste);
			this.tbpAlbumsDescription.Controls.Add(this.lnkSelectAll);
			this.tbpAlbumsDescription.Controls.Add(this.lnkFind);
			this.tbpAlbumsDescription.Controls.Add(this.label3);
			this.tbpAlbumsDescription.Controls.Add(this.txtComment);
			this.tbpAlbumsDescription.Location = new System.Drawing.Point(4, 24);
			this.tbpAlbumsDescription.Name = "tbpAlbumsDescription";
			this.tbpAlbumsDescription.Size = new System.Drawing.Size(632, 186);
			this.tbpAlbumsDescription.TabIndex = 1;
			this.tbpAlbumsDescription.Text = "图片说明";
			this.tbpAlbumsDescription.Visible = false;
			// 
			// lnkClearFormat
			// 
			this.lnkClearFormat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.lnkClearFormat.AutoSize = true;
			this.lnkClearFormat.BackColor = System.Drawing.Color.Transparent;
			this.lnkClearFormat.Location = new System.Drawing.Point(310, 156);
			this.lnkClearFormat.Name = "lnkClearFormat";
			this.lnkClearFormat.Size = new System.Drawing.Size(54, 17);
			this.lnkClearFormat.TabIndex = 35;
			this.lnkClearFormat.TabStop = true;
			this.lnkClearFormat.Text = "清除格式";
			this.lnkClearFormat.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkClearFormat_LinkClicked);
			// 
			// lnkMoveToBegin
			// 
			this.lnkMoveToBegin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.lnkMoveToBegin.AutoSize = true;
			this.lnkMoveToBegin.BackColor = System.Drawing.Color.Transparent;
			this.lnkMoveToBegin.Location = new System.Drawing.Point(366, 156);
			this.lnkMoveToBegin.Name = "lnkMoveToBegin";
			this.lnkMoveToBegin.Size = new System.Drawing.Size(54, 17);
			this.lnkMoveToBegin.TabIndex = 36;
			this.lnkMoveToBegin.TabStop = true;
			this.lnkMoveToBegin.Text = "移到开头";
			this.lnkMoveToBegin.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkMoveToBegin_LinkClicked);
			// 
			// lnkMoveToEnd
			// 
			this.lnkMoveToEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.lnkMoveToEnd.AutoSize = true;
			this.lnkMoveToEnd.BackColor = System.Drawing.Color.Transparent;
			this.lnkMoveToEnd.Location = new System.Drawing.Point(430, 156);
			this.lnkMoveToEnd.Name = "lnkMoveToEnd";
			this.lnkMoveToEnd.Size = new System.Drawing.Size(54, 17);
			this.lnkMoveToEnd.TabIndex = 37;
			this.lnkMoveToEnd.TabStop = true;
			this.lnkMoveToEnd.Text = "移到结尾";
			this.lnkMoveToEnd.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkMoveToEnd_LinkClicked);
			// 
			// lnkZoomIn
			// 
			this.lnkZoomIn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.lnkZoomIn.AutoSize = true;
			this.lnkZoomIn.BackColor = System.Drawing.Color.Transparent;
			this.lnkZoomIn.Location = new System.Drawing.Point(494, 156);
			this.lnkZoomIn.Name = "lnkZoomIn";
			this.lnkZoomIn.Size = new System.Drawing.Size(42, 17);
			this.lnkZoomIn.TabIndex = 32;
			this.lnkZoomIn.TabStop = true;
			this.lnkZoomIn.Text = "放大镜";
			this.lnkZoomIn.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkZoomIn_LinkClicked);
			// 
			// lnkPrint
			// 
			this.lnkPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.lnkPrint.AutoSize = true;
			this.lnkPrint.BackColor = System.Drawing.Color.Transparent;
			this.lnkPrint.Location = new System.Drawing.Point(542, 156);
			this.lnkPrint.Name = "lnkPrint";
			this.lnkPrint.Size = new System.Drawing.Size(29, 17);
			this.lnkPrint.TabIndex = 33;
			this.lnkPrint.TabStop = true;

⌨️ 快捷键说明

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