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

📄 pex.cs

📁 POCKET PC,照片管理系统!提供了真正意义上的目录打开功能
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.IO;
using System.Resources;
using System.Windows.Forms;
using Addot.Windows.Forms;
using Addot.Drawing;
using Addot.Win32;

namespace Pex
{
	/// <summary>
	/// Summary description for Pex.
	/// </summary>
	public class Pex : System.Windows.Forms.Form
	{
        #region --- Fields ---
        private DirectoryInfo currentSelected;
        private PictureViewer viewer;
        private ResourceManager rm;
        #endregion

        #region --- Controls ---
        private System.Windows.Forms.MainMenu menuPex;
        private System.Windows.Forms.MenuItem miFile;
        private System.Windows.Forms.MenuItem miExit;
        private System.Windows.Forms.ToolBarButton tbbSep;
        private System.Windows.Forms.ListView lvThumb;
        private System.Windows.Forms.ImageList ilThumbnails;
        private System.Windows.Forms.MenuItem miOpen;
        private System.Windows.Forms.MenuItem miSeparator;
        private System.Windows.Forms.ToolBarButton tbbOpen;
        private System.Windows.Forms.ToolBarButton tbbProperty;
        private System.Windows.Forms.MenuItem miProperty;
        private System.Windows.Forms.ImageList ilToolbar;
        private System.Windows.Forms.ToolBarButton tbbFolder;
        private System.Windows.Forms.MenuItem miOptions;
        private System.Windows.Forms.MenuItem miChangeFolder;
        private System.Windows.Forms.MenuItem miPreferences;
        private System.Windows.Forms.MenuItem miDelete;
        private System.Windows.Forms.ToolBarButton tbbDelete;
        private System.Windows.Forms.MenuItem miAbout;
        private System.Windows.Forms.ContextMenu contextMenu;
        private System.Windows.Forms.MenuItem miCtxOpen;
        private System.Windows.Forms.MenuItem miCtxDelete;
        private System.Windows.Forms.MenuItem miCtxProperty;
        private System.Windows.Forms.MenuItem miSupport;
        private System.Windows.Forms.MenuItem miHelp;
        private System.Windows.Forms.MenuItem miCtxSeparator1;
        private System.Windows.Forms.MenuItem miCtxSeparator2;
        private System.Windows.Forms.ToolBar toolBar;
        #endregion
    
		public Pex()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
            this.lvThumb.Activation = ItemActivation.TwoClick;
            this.lvThumb.ItemActivate += new EventHandler(OnOpen);

            rm = new ResourceManager(GetType().Namespace + "." + "PexRes", this.GetType().Assembly);
        }

		#region Windows Form Designer generated code
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			base.Dispose( disposing );
		}

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Pex));
            // 
            // Pex
            // 
            this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
            this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Location = new System.Drawing.Point(0, 0);
            this.Text = resources.GetString("$this.Text");
            // 
            // ilToolbar
            // 
            this.ilToolbar = new System.Windows.Forms.ImageList();
            this.ilToolbar.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
            this.ilToolbar.Images.Add(((System.Drawing.Image)(resources.GetObject("resource1"))));
            this.ilToolbar.Images.Add(((System.Drawing.Image)(resources.GetObject("resource2"))));
            this.ilToolbar.Images.Add(((System.Drawing.Image)(resources.GetObject("resource3"))));
            this.ilToolbar.ImageSize = new System.Drawing.Size(16, 16);
            // 
            // toolBar
            // 
            this.toolBar = new System.Windows.Forms.ToolBar();
            this.toolBar.Parent = this;
            this.toolBar.ImageList = this.ilToolbar;
            this.toolBar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.OnToolbarClick);
            // 
            // tbbSep
            // 
            this.tbbSep = new System.Windows.Forms.ToolBarButton();
            this.toolBar.Buttons.Add(this.tbbSep);
            this.tbbSep.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
            // 
            // tbbFolder
            // 
            this.tbbFolder = new System.Windows.Forms.ToolBarButton();
            this.toolBar.Buttons.Add(this.tbbFolder);
            this.tbbFolder.ImageIndex = 0;
            // 
            // tbbOpen
            // 
            this.tbbOpen = new System.Windows.Forms.ToolBarButton();
            this.toolBar.Buttons.Add(this.tbbOpen);
            this.tbbOpen.ImageIndex = 1;
            // 
            // tbbProperty
            // 
            this.tbbProperty = new System.Windows.Forms.ToolBarButton();
            this.toolBar.Buttons.Add(this.tbbProperty);
            this.tbbProperty.ImageIndex = 2;
            // 
            // tbbDelete
            // 
            this.tbbDelete = new System.Windows.Forms.ToolBarButton();
            this.toolBar.Buttons.Add(this.tbbDelete);
            this.tbbDelete.ImageIndex = 3;
            // 
            // miOpen
            // 
            this.miOpen = new System.Windows.Forms.MenuItem();
            this.miOpen.Text = resources.GetString("miOpen.Text");
            this.miOpen.Click += new System.EventHandler(this.OnOpen);
            // 
            // miDelete
            // 
            this.miDelete = new System.Windows.Forms.MenuItem();
            this.miDelete.Text = resources.GetString("miDelete.Text");
            this.miDelete.Click += new System.EventHandler(this.OnDelete);
            // 
            // miProperty
            // 
            this.miProperty = new System.Windows.Forms.MenuItem();
            this.miProperty.Text = resources.GetString("miProperty.Text");
            this.miProperty.Click += new System.EventHandler(this.OnProperty);
            // 
            // miSeparator
            // 
            this.miSeparator = new System.Windows.Forms.MenuItem();
            this.miSeparator.Text = "-";
            // 
            // miExit
            // 
            this.miExit = new System.Windows.Forms.MenuItem();
            this.miExit.Text = resources.GetString("miExit.Text");
            this.miExit.Click += new System.EventHandler(this.OnExit);
            // 
            // miFile
            // 
            this.miFile = new System.Windows.Forms.MenuItem();
            this.miFile.Text = resources.GetString("miFile.Text");
            this.miFile.MenuItems.Add(this.miOpen);
            this.miFile.MenuItems.Add(this.miDelete);
            this.miFile.MenuItems.Add(this.miProperty);
            this.miFile.MenuItems.Add(this.miSeparator);
            this.miFile.MenuItems.Add(this.miExit);
            // 
            // miChangeFolder
            // 
            this.miChangeFolder = new System.Windows.Forms.MenuItem();
            this.miChangeFolder.Text = resources.GetString("miChangeFolder.Text");
            this.miChangeFolder.Click += new System.EventHandler(this.OnChangeFolder);
            // 
            // miPreferences
            // 
            this.miPreferences = new System.Windows.Forms.MenuItem();
            this.miPreferences.Text = resources.GetString("miPreferences.Text");
            this.miPreferences.Click += new System.EventHandler(this.OnPreferences);
            // 
            // miOptions
            // 
            this.miOptions = new System.Windows.Forms.MenuItem();
            this.miOptions.Text = resources.GetString("miOptions.Text");
            this.miOptions.MenuItems.Add(this.miChangeFolder);
            this.miOptions.MenuItems.Add(this.miPreferences);
            // 
            // miAbout
            // 
            this.miAbout = new System.Windows.Forms.MenuItem();
            this.miAbout.Text = resources.GetString("miAbout.Text");
            this.miAbout.Click += new System.EventHandler(this.OnAbout);
            // 
            // miHelp
            // 
            this.miHelp = new System.Windows.Forms.MenuItem();
            this.miHelp.Text = resources.GetString("miHelp.Text");
            this.miHelp.Click += new System.EventHandler(this.OnPexHelp);
            // 
            // miSupport
            // 
            this.miSupport = new System.Windows.Forms.MenuItem();
            this.miSupport.Text = resources.GetString("miSupport.Text");
            this.miSupport.MenuItems.Add(this.miAbout);
            this.miSupport.MenuItems.Add(this.miHelp);
            // 
            // menuPex
            // 
            this.menuPex = new System.Windows.Forms.MainMenu();
            this.menuPex.MenuItems.Add(this.miFile);
            this.menuPex.MenuItems.Add(this.miOptions);
            this.menuPex.MenuItems.Add(this.miSupport);
            // 
            // miCtxOpen
            // 
            this.miCtxOpen = new System.Windows.Forms.MenuItem();
            this.miCtxOpen.Text = resources.GetString("miCtxOpen.Text");
            this.miCtxOpen.Click += new System.EventHandler(this.OnOpen);
            // 
            // miCtxSeparator1
            // 
            this.miCtxSeparator1 = new System.Windows.Forms.MenuItem();
            this.miCtxSeparator1.Text = "-";
            // 
            // miCtxDelete
            // 
            this.miCtxDelete = new System.Windows.Forms.MenuItem();
            this.miCtxDelete.Text = resources.GetString("miCtxDelete.Text");
            this.miCtxDelete.Click += new System.EventHandler(this.OnDelete);
            // 
            // miCtxSeparator2
            // 
            this.miCtxSeparator2 = new System.Windows.Forms.MenuItem();
            this.miCtxSeparator2.Text = "-";
            // 
            // miCtxProperty
            // 
            this.miCtxProperty = new System.Windows.Forms.MenuItem();
            this.miCtxProperty.Text = resources.GetString("miCtxProperty.Text");
            this.miCtxProperty.Click += new System.EventHandler(this.OnProperty);
            // 
            // contextMenu
            // 
            this.contextMenu = new System.Windows.Forms.ContextMenu();
            this.contextMenu.MenuItems.Add(this.miCtxOpen);
            this.contextMenu.MenuItems.Add(this.miCtxSeparator1);
            this.contextMenu.MenuItems.Add(this.miCtxDelete);
            this.contextMenu.MenuItems.Add(this.miCtxSeparator2);
            this.contextMenu.MenuItems.Add(this.miCtxProperty);
            // 
            // ilThumbnails
            // 

⌨️ 快捷键说明

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