zoukankan      html  css  js  c++  java
  • 告诉你吧,一套皮肤在winform与wpf开发模式下实现的界面效果同样精彩,winform界面和wpf界面。

    一、同一资源:

    二、先上软件界面:

    (1)wpf界面:

    在wpf中实现这样类似web风格的软件界面就不用我多说了,在wpf实现这样的风格是很简单的,完全像网页设计一样的。

    (2)winform界面

    在winfrom模式下开发桌面程序,听到最多是不简单,而且有可能得不偿失,因为需要通过大量的重绘paint事件,很耗性能。但我告诉你我这个布局绝对没有用重绘实现,用的还是

    wpf的老祖宗panel实现的,虽然原理和网页背景一样小像素图片平铺,但界面加载的时候丝毫没有闪屏现象。请看代码:

     partial class MainFrm
        {
            /// <summary>
            /// Required designer variable.
            /// </summary>
            private System.ComponentModel.IContainer components = null;
    
            /// <summary>
            /// Clean up any resources being used.
            /// </summary>
            /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
            protected override void Dispose(bool disposing)
            {
                if (disposing && (components != null))
                {
                    components.Dispose();
                }
                base.Dispose(disposing);
            }
    
            #region Windows Form Designer generated code
    
            /// <summary>
            /// Required method for Designer support - do not modify
            /// the contents of this method with the code editor.
            /// </summary>
            private void InitializeComponent()
            {
                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainFrm));
                this.mainPnl = new System.Windows.Forms.Panel();
                this.bottomPnl = new System.Windows.Forms.Panel();
                this.mainContentPnl = new System.Windows.Forms.Panel();
                this.panel1 = new System.Windows.Forms.Panel();
                this.panel4 = new System.Windows.Forms.Panel();
                this.lblVersion = new System.Windows.Forms.Label();
                this.panel13 = new System.Windows.Forms.Panel();
                this.lblCopyright = new System.Windows.Forms.Label();
                this.panel12 = new System.Windows.Forms.Panel();
                this.panel3 = new System.Windows.Forms.Panel();
                this.tabControl1 = new Dare.DN.ControlLib.TabControlExt();
                this.tabPage1 = new System.Windows.Forms.TabPage();
                this.tabPage2 = new System.Windows.Forms.TabPage();
                this.tabPage3 = new System.Windows.Forms.TabPage();
                this.tabPage4 = new System.Windows.Forms.TabPage();
                this.tabPage5 = new System.Windows.Forms.TabPage();
                this.tabPage6 = new System.Windows.Forms.TabPage();
                this.tabPage7 = new System.Windows.Forms.TabPage();
                this.panel11 = new System.Windows.Forms.Panel();
                this.panel2 = new System.Windows.Forms.Panel();
                this.panel14 = new System.Windows.Forms.Panel();
                this.imgBtnSysconfig = new Dare.DN.ControlLib.ImageButton();
                this.imgBtnExt = new Dare.DN.ControlLib.ImageButton();
                this.imgBtnAbout = new Dare.DN.ControlLib.ImageButton();
                this.imgBtnTerminal = new Dare.DN.ControlLib.ImageButton();
                this.imgBtnProgram = new Dare.DN.ControlLib.ImageButton();
                this.imgBtnMedia = new Dare.DN.ControlLib.ImageButton();
                this.mainRPnl = new System.Windows.Forms.Panel();
                this.mainLPnl = new System.Windows.Forms.Panel();
                this.topPnl = new System.Windows.Forms.Panel();
                this.topRPnl = new System.Windows.Forms.Panel();
                this.panel9 = new System.Windows.Forms.Panel();
                this.btnMax = new Dare.DN.ControlLib.SysButton();
                this.btnMin = new Dare.DN.ControlLib.SysButton();
                this.btnClose = new Dare.DN.ControlLib.SysButton();
                this.topLPnl = new System.Windows.Forms.Panel();
                this.pictureBox1 = new System.Windows.Forms.PictureBox();
                this.lblTitle = new System.Windows.Forms.Label();
                this.panel10 = new System.Windows.Forms.Panel();
    
                this.mainPnl.SuspendLayout();
                this.mainContentPnl.SuspendLayout();
                this.panel1.SuspendLayout();
                this.panel4.SuspendLayout();
                this.panel13.SuspendLayout();
                this.panel3.SuspendLayout();
                this.tabControl1.SuspendLayout();
                this.tabPage7.SuspendLayout();
                this.panel2.SuspendLayout();
                this.panel14.SuspendLayout();
                this.topPnl.SuspendLayout();
                this.topRPnl.SuspendLayout();
                this.panel9.SuspendLayout();
                this.topLPnl.SuspendLayout();
                ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
                this.SuspendLayout();
                // 
                // mainPnl
                // 
                this.mainPnl.BackColor = System.Drawing.SystemColors.ControlText;
                this.mainPnl.Controls.Add(this.bottomPnl);
                this.mainPnl.Controls.Add(this.mainContentPnl);
                this.mainPnl.Controls.Add(this.mainRPnl);
                this.mainPnl.Controls.Add(this.mainLPnl);
                this.mainPnl.Controls.Add(this.topPnl);
                this.mainPnl.Dock = System.Windows.Forms.DockStyle.Fill;
                this.mainPnl.Location = new System.Drawing.Point(0, 0);
                this.mainPnl.Name = "mainPnl";
                this.mainPnl.Size = new System.Drawing.Size(1016, 716);
                this.mainPnl.TabIndex = 0;
                // 
                // bottomPnl
                // 
                this.bottomPnl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.bottomPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("bottomPnl.BackgroundImage")));
                this.bottomPnl.Location = new System.Drawing.Point(-17, 714);
                this.bottomPnl.Name = "bottomPnl";
                this.bottomPnl.Size = new System.Drawing.Size(1031, 2);
                this.bottomPnl.TabIndex = 3;
                // 
                // mainContentPnl
                // 
                this.mainContentPnl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                            | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.mainContentPnl.Controls.Add(this.panel1);
                this.mainContentPnl.Location = new System.Drawing.Point(3, 23);
                this.mainContentPnl.Name = "mainContentPnl";
                this.mainContentPnl.Size = new System.Drawing.Size(1009, 690);
                this.mainContentPnl.TabIndex = 4;
                // 
                // panel1
                // 
                this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
                this.panel1.Controls.Add(this.panel4);
                this.panel1.Controls.Add(this.panel3);
                this.panel1.Controls.Add(this.panel2);
                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(1009, 690);
                this.panel1.TabIndex = 1;
                // 
                // panel4
                // 
                this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.panel4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel4.BackgroundImage")));
                this.panel4.Controls.Add(this.lblVersion);
                this.panel4.Controls.Add(this.panel13);
                this.panel4.Controls.Add(this.panel12);
                this.panel4.Location = new System.Drawing.Point(0, 657);
                this.panel4.Name = "panel4";
                this.panel4.Size = new System.Drawing.Size(1008, 33);
                this.panel4.TabIndex = 2;
                // 
                // lblVersion
                // 
                this.lblVersion.AutoSize = true;
                this.lblVersion.BackColor = System.Drawing.Color.Transparent;
                this.lblVersion.ForeColor = System.Drawing.Color.DeepSkyBlue;
                this.lblVersion.Location = new System.Drawing.Point(14, 11);
                this.lblVersion.Name = "lblVersion";
                this.lblVersion.Size = new System.Drawing.Size(131, 12);
                this.lblVersion.TabIndex = 2;
                this.lblVersion.Text = "当前版本:V 1.0.0.1245";
                // 
                // panel13
                // 
                this.panel13.Anchor = System.Windows.Forms.AnchorStyles.Right;
                this.panel13.BackColor = System.Drawing.Color.Transparent;
                this.panel13.Controls.Add(this.lblCopyright);
                this.panel13.Location = new System.Drawing.Point(536, 0);
                this.panel13.Name = "panel13"; 
                this.panel13.Size = new System.Drawing.Size(455, 33);
                this.panel13.TabIndex = 1;
                // 
                // lblCopyright
                // 
                this.lblCopyright.AutoSize = true;
                this.lblCopyright.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                this.lblCopyright.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(99)))), ((int)(((byte)(162)))));
                this.lblCopyright.Location = new System.Drawing.Point(138, 9);
                this.lblCopyright.Name = "lblCopyright";
                this.lblCopyright.Size = new System.Drawing.Size(314, 15);
                this.lblCopyright.TabIndex = 2;
                this.lblCopyright.Text = "Copyright ? 2002 - 2011 Dare-tech. All Rights Reserved ";
                // 
                // panel12
                // 
                this.panel12.Anchor = System.Windows.Forms.AnchorStyles.Right;
                this.panel12.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel12.BackgroundImage")));
                this.panel12.Location = new System.Drawing.Point(990, 0);
                this.panel12.Name = "panel12";
                this.panel12.Size = new System.Drawing.Size(18, 33);
                this.panel12.TabIndex = 0;
                // 
                // panel3
                // 
                this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                            | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.panel3.Controls.Add(this.tabControl1);
                this.panel3.Location = new System.Drawing.Point(1, 103);
                this.panel3.Name = "panel3";
                this.panel3.Size = new System.Drawing.Size(1006, 555);
                this.panel3.TabIndex = 1;
                // 
                // tabControl1
                // 
                this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                            | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.tabControl1.Controls.Add(this.tabPage1);
                this.tabControl1.Controls.Add(this.tabPage2);
                this.tabControl1.Controls.Add(this.tabPage3);
                this.tabControl1.Controls.Add(this.tabPage4);
                this.tabControl1.Controls.Add(this.tabPage5);
                this.tabControl1.Controls.Add(this.tabPage6);
                this.tabControl1.Controls.Add(this.tabPage7);
                this.tabControl1.HideTabs = true;
                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(1006, 555);
                this.tabControl1.TabIndex = 1;
               
                this.tabPage6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
                this.tabPage6.Controls.Add(this.panel10);
                this.tabPage6.Location = new System.Drawing.Point(0, 0);
                this.tabPage6.Name = "tabPage6";
                this.tabPage6.Size = new System.Drawing.Size(1006, 555);
                this.tabPage6.TabIndex = 5;
                this.tabPage6.Text = "tabPage6";
    
                // 
                // tabPage7
                // 
                this.tabPage7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
                this.tabPage7.Controls.Add(this.panel11);
                this.tabPage7.Location = new System.Drawing.Point(0, 0);
                this.tabPage7.Name = "tabPage7";
                this.tabPage7.Size = new System.Drawing.Size(1006, 555);
                this.tabPage7.TabIndex = 6;
                this.tabPage7.Text = "tabPage7";
                // 
                // panel11
                // 
                this.panel11.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.panel11.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel11.BackgroundImage")));
                this.panel11.Location = new System.Drawing.Point(-4, 0);
                this.panel11.Name = "panel11";
                this.panel11.Size = new System.Drawing.Size(1013, 33);
                this.panel11.TabIndex = 3;
                // 
                // panel2
                // 
                this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
                this.panel2.BackgroundImage = global::DareMediaTray.Properties.Resources.hd;
                this.panel2.Controls.Add(this.panel14);
                this.panel2.Location = new System.Drawing.Point(1, -1);
                this.panel2.Name = "panel2";
                this.panel2.Size = new System.Drawing.Size(1008, 105);
                this.panel2.TabIndex = 0;
                // 
                // panel14
                // 
                this.panel14.Anchor = System.Windows.Forms.AnchorStyles.Right;
                this.panel14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
                this.panel14.Controls.Add(this.imgBtnSysconfig);
                this.panel14.Controls.Add(this.imgBtnExt);
                this.panel14.Controls.Add(this.imgBtnAbout);
                this.panel14.Controls.Add(this.imgBtnTerminal);
                this.panel14.Controls.Add(this.imgBtnProgram);
                this.panel14.Controls.Add(this.imgBtnMedia);
                this.panel14.Location = new System.Drawing.Point(471, 2);
                this.panel14.Name = "panel14";
                this.panel14.Size = new System.Drawing.Size(537, 103);
                this.panel14.TabIndex = 0;
                // 
                // imgBtnSysconfig
                // 
                this.imgBtnSysconfig.ButtonImage = ((System.Drawing.Image)(resources.GetObject("imgBtnSysconfig.ButtonImage")));
                this.imgBtnSysconfig.ButtonText = "系统配置";
                this.imgBtnSysconfig.Cursor = System.Windows.Forms.Cursors.Hand;
                this.imgBtnSysconfig.Location = new System.Drawing.Point(448, 16);
                this.imgBtnSysconfig.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("imgBtnSysconfig.MouseClickImage")));
                this.imgBtnSysconfig.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("imgBtnSysconfig.MouseOverImage")));
                this.imgBtnSysconfig.Name = "imgBtnSysconfig";
                this.imgBtnSysconfig.Size = new System.Drawing.Size(85, 71);
                this.imgBtnSysconfig.TabIndex = 11;
                this.imgBtnSysconfig.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnSysconfig_Click);
                // 
                // imgBtnExt
                // 
                this.imgBtnExt.ButtonImage = global::DareMediaTray.Properties.Resources.template_release;
                this.imgBtnExt.ButtonText = "模板管理";
                this.imgBtnExt.Cursor = System.Windows.Forms.Cursors.Hand;
                this.imgBtnExt.Location = new System.Drawing.Point(96, 16);
                this.imgBtnExt.MouseClickImage = global::DareMediaTray.Properties.Resources.template_over;
                this.imgBtnExt.MouseOverImage = global::DareMediaTray.Properties.Resources.template_over;
                this.imgBtnExt.Name = "imgBtnExt";
                this.imgBtnExt.Size = new System.Drawing.Size(85, 71);
                this.imgBtnExt.TabIndex = 10;
                this.imgBtnExt.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnExt_Click);
                // 
                // imgBtnAbout
                // 
                this.imgBtnAbout.ButtonImage = global::DareMediaTray.Properties.Resources.weather_release;
                this.imgBtnAbout.ButtonText = "天气管理";
                this.imgBtnAbout.Cursor = System.Windows.Forms.Cursors.Hand;
                this.imgBtnAbout.Location = new System.Drawing.Point(360, 16);
                this.imgBtnAbout.MouseClickImage = global::DareMediaTray.Properties.Resources.weather_over;
                this.imgBtnAbout.MouseOverImage = global::DareMediaTray.Properties.Resources.weather_over;
                this.imgBtnAbout.Name = "imgBtnAbout";
                this.imgBtnAbout.Size = new System.Drawing.Size(85, 71);
                this.imgBtnAbout.TabIndex = 9;
                this.imgBtnAbout.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnAbout_Click);
                // 
                // imgBtnTerminal
                // 
                this.imgBtnTerminal.ButtonImage = ((System.Drawing.Image)(resources.GetObject("imgBtnTerminal.ButtonImage")));
                this.imgBtnTerminal.ButtonText = "终端管理";
                this.imgBtnTerminal.Cursor = System.Windows.Forms.Cursors.Hand;
                this.imgBtnTerminal.Location = new System.Drawing.Point(272, 16);
                this.imgBtnTerminal.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("imgBtnTerminal.MouseClickImage")));
                this.imgBtnTerminal.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("imgBtnTerminal.MouseOverImage")));
                this.imgBtnTerminal.Name = "imgBtnTerminal";
                this.imgBtnTerminal.Size = new System.Drawing.Size(85, 71);
                this.imgBtnTerminal.TabIndex = 8;
                this.imgBtnTerminal.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnTerminal_Click);
                // 
                // imgBtnProgram
                // 
                this.imgBtnProgram.ButtonImage = ((System.Drawing.Image)(resources.GetObject("imgBtnProgram.ButtonImage")));
                this.imgBtnProgram.ButtonText = "节目管理";
                this.imgBtnProgram.Cursor = System.Windows.Forms.Cursors.Arrow;
                this.imgBtnProgram.Location = new System.Drawing.Point(184, 16);
                this.imgBtnProgram.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("imgBtnProgram.MouseClickImage")));
                this.imgBtnProgram.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("imgBtnProgram.MouseOverImage")));
                this.imgBtnProgram.Name = "imgBtnProgram";
                this.imgBtnProgram.Size = new System.Drawing.Size(85, 71);
                this.imgBtnProgram.TabIndex = 7;
                this.imgBtnProgram.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnProgram_Click);
                // 
                // imgBtnMedia
                // 
                this.imgBtnMedia.ButtonImage = ((System.Drawing.Image)(resources.GetObject("imgBtnMedia.ButtonImage")));
                this.imgBtnMedia.ButtonText = "素材管理";
                this.imgBtnMedia.Cursor = System.Windows.Forms.Cursors.Hand;
                this.imgBtnMedia.Location = new System.Drawing.Point(8, 16);
                this.imgBtnMedia.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("imgBtnMedia.MouseClickImage")));
                this.imgBtnMedia.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("imgBtnMedia.MouseOverImage")));
                this.imgBtnMedia.Name = "imgBtnMedia";
                this.imgBtnMedia.Size = new System.Drawing.Size(85, 71);
                this.imgBtnMedia.TabIndex = 6;
                this.imgBtnMedia.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnMedia_Click);
                // 
                // mainRPnl
                // 
                this.mainRPnl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.mainRPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("mainRPnl.BackgroundImage")));
                this.mainRPnl.Location = new System.Drawing.Point(1014, 21);
                this.mainRPnl.Name = "mainRPnl";
                this.mainRPnl.Size = new System.Drawing.Size(2, 694);
                this.mainRPnl.TabIndex = 2;
                // 
                // mainLPnl
                // 
                this.mainLPnl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                            | System.Windows.Forms.AnchorStyles.Left)));
                this.mainLPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("mainLPnl.BackgroundImage")));
                this.mainLPnl.Location = new System.Drawing.Point(0, 21);
                this.mainLPnl.Name = "mainLPnl";
                this.mainLPnl.Size = new System.Drawing.Size(2, 694);
                this.mainLPnl.TabIndex = 1;
                // 
                // topPnl
                // 
                this.topPnl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.topPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("topPnl.BackgroundImage")));
                this.topPnl.Controls.Add(this.topRPnl);
                this.topPnl.Controls.Add(this.topLPnl);
                this.topPnl.Location = new System.Drawing.Point(0, 0);
                this.topPnl.Name = "topPnl";
                this.topPnl.Size = new System.Drawing.Size(1016, 23);
                this.topPnl.TabIndex = 0;
                this.topPnl.MouseDown += new System.Windows.Forms.MouseEventHandler(this.topPnl_MouseDown);
                // 
                // topRPnl
                // 
                this.topRPnl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
                this.topRPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("topRPnl.BackgroundImage")));
                this.topRPnl.Controls.Add(this.panel9);
                this.topRPnl.Location = new System.Drawing.Point(822, 0);
                this.topRPnl.Name = "topRPnl";
                this.topRPnl.Size = new System.Drawing.Size(195, 23);
                this.topRPnl.TabIndex = 1;
                // 
                // panel9
                // 
                this.panel9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
                this.panel9.BackColor = System.Drawing.Color.Transparent;
                this.panel9.Controls.Add(this.btnMax);
                this.panel9.Controls.Add(this.btnMin);
                this.panel9.Controls.Add(this.btnClose);
                this.panel9.Location = new System.Drawing.Point(62, 2);
                this.panel9.Name = "panel9";
                this.panel9.Size = new System.Drawing.Size(130, 21);
                this.panel9.TabIndex = 14;
                // 
                // btnMax
                // 
                this.btnMax.BackColor = System.Drawing.Color.Transparent;
                this.btnMax.ButtonImage = ((System.Drawing.Image)(resources.GetObject("btnMax.ButtonImage")));
                this.btnMax.ButtonText = "";
                this.btnMax.Cursor = System.Windows.Forms.Cursors.Arrow;
                this.btnMax.Location = new System.Drawing.Point(59, -1);
                this.btnMax.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("btnMax.MouseClickImage")));
                this.btnMax.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("btnMax.MouseOverImage")));
                this.btnMax.Name = "btnMax";
                this.btnMax.Size = new System.Drawing.Size(34, 17);
                this.btnMax.TabIndex = 11;
                this.btnMax.Click += new Dare.DN.ControlLib.SysButton.ClickEventHandler(this.btnMax_Click);
                // 
                // btnMin
                // 
                this.btnMin.BackColor = System.Drawing.Color.Transparent;
                this.btnMin.ButtonImage = ((System.Drawing.Image)(resources.GetObject("btnMin.ButtonImage")));
                this.btnMin.ButtonText = "";
                this.btnMin.Cursor = System.Windows.Forms.Cursors.Arrow;
                this.btnMin.Location = new System.Drawing.Point(25, -1);
                this.btnMin.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("btnMin.MouseClickImage")));
                this.btnMin.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("btnMin.MouseOverImage")));
                this.btnMin.Name = "btnMin";
                this.btnMin.Size = new System.Drawing.Size(34, 17);
                this.btnMin.TabIndex = 12;
                this.btnMin.Click += new Dare.DN.ControlLib.SysButton.ClickEventHandler(this.btnMin_Click);
                // 
                // btnClose
                // 
                this.btnClose.BackColor = System.Drawing.Color.Transparent;
                this.btnClose.ButtonImage = ((System.Drawing.Image)(resources.GetObject("btnClose.ButtonImage")));
                this.btnClose.ButtonText = "";
                this.btnClose.Cursor = System.Windows.Forms.Cursors.Arrow;
                this.btnClose.Location = new System.Drawing.Point(93, -1);
                this.btnClose.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("btnClose.MouseClickImage")));
                this.btnClose.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("btnClose.MouseOverImage")));
                this.btnClose.Name = "btnClose";
                this.btnClose.Size = new System.Drawing.Size(34, 17);
                this.btnClose.TabIndex = 10;
                this.btnClose.Click += new Dare.DN.ControlLib.SysButton.ClickEventHandler(this.btnClose_Click);
                // 
                // topLPnl
                // 
                this.topLPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("topLPnl.BackgroundImage")));
                this.topLPnl.Controls.Add(this.pictureBox1);
                this.topLPnl.Controls.Add(this.lblTitle);
                this.topLPnl.Location = new System.Drawing.Point(0, 0);
                this.topLPnl.Name = "topLPnl";
                this.topLPnl.Size = new System.Drawing.Size(190, 23);
                this.topLPnl.TabIndex = 0;
                // 
                // pictureBox1
                // 
                this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
                this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
                this.pictureBox1.Location = new System.Drawing.Point(6, 4);
                this.pictureBox1.Name = "pictureBox1";
                this.pictureBox1.Size = new System.Drawing.Size(16, 16);
                this.pictureBox1.TabIndex = 1;
                this.pictureBox1.TabStop = false;
                // 
                // lblTitle
                // 
                this.lblTitle.AutoSize = true;
                this.lblTitle.BackColor = System.Drawing.Color.Transparent;
                this.lblTitle.ForeColor = System.Drawing.Color.White;
                this.lblTitle.Location = new System.Drawing.Point(28, 5);
                this.lblTitle.Name = "lblTitle";
                this.lblTitle.Size = new System.Drawing.Size(53, 12);
                this.lblTitle.TabIndex = 0;
                this.lblTitle.Text = "lblTitle";
                // 
                // panel10
                // 
                this.panel10.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.panel10.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel10.BackgroundImage")));
                this.panel10.Location = new System.Drawing.Point(-4, 0);
                this.panel10.Name = "panel10";
                this.panel10.Size = new System.Drawing.Size(1013, 33);
                this.panel10.TabIndex = 3;
    
                // 
                // MainFrm
                // 
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
                this.BackColor = System.Drawing.SystemColors.ControlText;
                this.ClientSize = new System.Drawing.Size(1016, 716);
                this.Controls.Add(this.mainPnl);
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
                this.Name = "MainFrm";
                this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
                this.Text = "MainFrm";
                this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
                this.mainPnl.ResumeLayout(false);
                this.mainContentPnl.ResumeLayout(false);
                this.panel1.ResumeLayout(false);
                this.panel4.ResumeLayout(false);
                this.panel4.PerformLayout();
                this.panel13.ResumeLayout(false);
                this.panel13.PerformLayout();
                this.panel3.ResumeLayout(false);
                this.tabControl1.ResumeLayout(false);
                this.tabPage7.ResumeLayout(false);
                this.panel2.ResumeLayout(false);
                this.panel14.ResumeLayout(false);
                this.topPnl.ResumeLayout(false);
                this.topRPnl.ResumeLayout(false);
                this.panel9.ResumeLayout(false);
                this.topLPnl.ResumeLayout(false);
                this.topLPnl.PerformLayout();
                ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
                this.ResumeLayout(false);
    
            }
    
            #endregion
    
            private System.Windows.Forms.Panel mainPnl;
            private System.Windows.Forms.Panel topPnl;
            private System.Windows.Forms.Panel topLPnl;
            private System.Windows.Forms.Panel topRPnl;
            private System.Windows.Forms.Panel mainLPnl;
            private System.Windows.Forms.Panel mainRPnl;
            private System.Windows.Forms.Panel mainContentPnl;
            private System.Windows.Forms.Panel bottomPnl;
            private System.Windows.Forms.Panel panel1;
            private System.Windows.Forms.Panel panel4;
            private System.Windows.Forms.Label lblVersion;
            private System.Windows.Forms.Panel panel13;
            private System.Windows.Forms.Label lblCopyright;
            private System.Windows.Forms.Panel panel12;
            private System.Windows.Forms.Panel panel3;
            private Dare.DN.ControlLib.TabControlExt tabControl1;
            private System.Windows.Forms.TabPage tabPage1;
            private System.Windows.Forms.TabPage tabPage2;
            private System.Windows.Forms.TabPage tabPage3;
           
            private System.Windows.Forms.TabPage tabPage4;
            private System.Windows.Forms.TabPage tabPage5;
            private System.Windows.Forms.TabPage tabPage6;
            private System.Windows.Forms.Panel panel10;
            private System.Windows.Forms.TabPage tabPage7;
            private System.Windows.Forms.Panel panel11;
            private System.Windows.Forms.Panel panel2;
            private System.Windows.Forms.Panel panel14;
            private Dare.DN.ControlLib.ImageButton imgBtnSysconfig;
            private Dare.DN.ControlLib.ImageButton imgBtnExt;
            private Dare.DN.ControlLib.ImageButton imgBtnAbout;
            private Dare.DN.ControlLib.ImageButton imgBtnTerminal;
            private Dare.DN.ControlLib.ImageButton imgBtnProgram;
            private Dare.DN.ControlLib.ImageButton imgBtnMedia;
            private System.Windows.Forms.Panel panel9;
            private Dare.DN.ControlLib.SysButton btnMax;
            private Dare.DN.ControlLib.SysButton btnMin;
            private Dare.DN.ControlLib.SysButton btnClose;
            private System.Windows.Forms.Label lblTitle;
            private System.Windows.Forms.PictureBox pictureBox1;
     
    
        }
    partial class MediaUC
        {
            /// <summary> 
            /// 必需的设计器变量。
            /// </summary>
            private System.ComponentModel.IContainer components = null;
    
            /// <summary> 
            /// 清理所有正在使用的资源。
            /// </summary>
            /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
            protected override void Dispose(bool disposing)
            {
                if (disposing && (components != null))
                {
                    components.Dispose();
                }
                base.Dispose(disposing);
            }
    
            #region 组件设计器生成的代码
    
            /// <summary> 
            /// 设计器支持所需的方法 - 不要
            /// 使用代码编辑器修改此方法的内容。
            /// </summary>
            private void InitializeComponent()
            {
                this.components = new System.ComponentModel.Container();
                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MediaUC));
                this.plMd = new System.Windows.Forms.Panel();
                this.panel18 = new System.Windows.Forms.Panel();
                this.splitContainer1 = new System.Windows.Forms.SplitContainer();
                this.panel20 = new System.Windows.Forms.Panel();
                this.btnFreshFolder = new System.Windows.Forms.PictureBox();
                this.btnDelFolder = new System.Windows.Forms.PictureBox();
                this.btnEditFolder = new System.Windows.Forms.PictureBox();
                this.btnAddFolder = new System.Windows.Forms.PictureBox();
                this.label1 = new System.Windows.Forms.Label();
                this.pictureBox2 = new System.Windows.Forms.PictureBox();
                this.folderTrview = new System.Windows.Forms.TreeView();
                this.pageControl1 = new Dare.DN.ControlLib.PageControl();
                this.mdLView = new System.Windows.Forms.ListView();
                this.chName = new System.Windows.Forms.ColumnHeader();
                this.chType = new System.Windows.Forms.ColumnHeader();
                this.chState = new System.Windows.Forms.ColumnHeader();
                this.chCount = new System.Windows.Forms.ColumnHeader();
                this.chSize = new System.Windows.Forms.ColumnHeader();
                this.chWith = new System.Windows.Forms.ColumnHeader();
                this.chHeight = new System.Windows.Forms.ColumnHeader();
                this.chCreateTime = new System.Windows.Forms.ColumnHeader();
                this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
                this.importMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.editerMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.deleteMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.refreshMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.convertMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.panel21 = new System.Windows.Forms.Panel();
                this.panel1 = new System.Windows.Forms.Panel();
                this.label3 = new System.Windows.Forms.Label();
                this.btnSearch = new System.Windows.Forms.Label();
                this.txtSearch = new System.Windows.Forms.TextBox();
                this.pictureBox3 = new System.Windows.Forms.PictureBox();
                this.label2 = new System.Windows.Forms.Label();
                this.pictureBox1 = new System.Windows.Forms.PictureBox();
                this.panel5 = new System.Windows.Forms.Panel();
                this.btnConvert = new System.Windows.Forms.Button();
                this.btnRefresh = new System.Windows.Forms.Button();
                this.btnEdit = new System.Windows.Forms.Button();
                this.btnDelete = new System.Windows.Forms.Button();
                this.btnImport = new System.Windows.Forms.Button();
                this.imageList1 = new System.Windows.Forms.ImageList(this.components);
                this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components);
                this.importFdMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.addFdMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.editFdMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.delFdMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.plMd.SuspendLayout();
                this.panel18.SuspendLayout();
                this.splitContainer1.Panel1.SuspendLayout();
                this.splitContainer1.Panel2.SuspendLayout();
                this.splitContainer1.SuspendLayout();
                this.panel20.SuspendLayout();
                ((System.ComponentModel.ISupportInitialize)(this.btnFreshFolder)).BeginInit();
                ((System.ComponentModel.ISupportInitialize)(this.btnDelFolder)).BeginInit();
                ((System.ComponentModel.ISupportInitialize)(this.btnEditFolder)).BeginInit();
                ((System.ComponentModel.ISupportInitialize)(this.btnAddFolder)).BeginInit();
                ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
                this.contextMenuStrip1.SuspendLayout();
                this.panel21.SuspendLayout();
                this.panel1.SuspendLayout();
                ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
                ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
                this.panel5.SuspendLayout();
                this.contextMenuStrip2.SuspendLayout();
                this.SuspendLayout();
                // 
                // plMd
                // 
                this.plMd.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                            | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.plMd.Controls.Add(this.panel18);
                this.plMd.Controls.Add(this.panel5);
                this.plMd.Location = new System.Drawing.Point(3, 3);
                this.plMd.Margin = new System.Windows.Forms.Padding(0);
                this.plMd.Name = "plMd";
                this.plMd.Size = new System.Drawing.Size(1009, 575);
                this.plMd.TabIndex = 1;
                // 
                // panel18
                // 
                this.panel18.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                            | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.panel18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
                this.panel18.Controls.Add(this.splitContainer1);
                this.panel18.Location = new System.Drawing.Point(1, 32);
                this.panel18.Name = "panel18";
                this.panel18.Size = new System.Drawing.Size(1007, 543);
                this.panel18.TabIndex = 74;
                // 
                // splitContainer1
                // 
                this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                            | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.splitContainer1.Location = new System.Drawing.Point(5, 5);
                this.splitContainer1.Name = "splitContainer1";
                // 
                // splitContainer1.Panel1
                // 
                this.splitContainer1.Panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(248)))), ((int)(((byte)(253)))));
                this.splitContainer1.Panel1.Controls.Add(this.panel20);
                this.splitContainer1.Panel1.Controls.Add(this.folderTrview);
                // 
                // splitContainer1.Panel2
                // 
                this.splitContainer1.Panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(248)))), ((int)(((byte)(253)))));
                this.splitContainer1.Panel2.Controls.Add(this.pageControl1);
                this.splitContainer1.Panel2.Controls.Add(this.mdLView);
                this.splitContainer1.Panel2.Controls.Add(this.panel21);
                this.splitContainer1.Size = new System.Drawing.Size(997, 532);
                this.splitContainer1.SplitterDistance = 196;
                this.splitContainer1.SplitterWidth = 6;
                this.splitContainer1.TabIndex = 4;
                // 
                // panel20
                // 
                this.panel20.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.panel20.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel20.BackgroundImage")));
                this.panel20.Controls.Add(this.btnFreshFolder);
                this.panel20.Controls.Add(this.btnDelFolder);
                this.panel20.Controls.Add(this.btnEditFolder);
                this.panel20.Controls.Add(this.btnAddFolder);
                this.panel20.Controls.Add(this.label1);
                this.panel20.Controls.Add(this.pictureBox2);
                this.panel20.Location = new System.Drawing.Point(1, 1);
                this.panel20.Name = "panel20";
                this.panel20.Size = new System.Drawing.Size(195, 29);
                this.panel20.TabIndex = 16;
                // 
                // btnFreshFolder
                // 
                this.btnFreshFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
                this.btnFreshFolder.BackColor = System.Drawing.Color.Transparent;
                this.btnFreshFolder.Cursor = System.Windows.Forms.Cursors.Hand;
                this.btnFreshFolder.Image = global::DareMediaTray.Properties.Resources.folder_refresh;
                this.btnFreshFolder.Location = new System.Drawing.Point(172, 6);
                this.btnFreshFolder.Name = "btnFreshFolder";
                this.btnFreshFolder.Size = new System.Drawing.Size(16, 16);
                this.btnFreshFolder.TabIndex = 20;
                this.btnFreshFolder.TabStop = false;
                this.btnFreshFolder.Click += new System.EventHandler(this.btnFreshFolder_Click);
                // 
                // btnDelFolder
                // 
                this.btnDelFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
                this.btnDelFolder.BackColor = System.Drawing.Color.Transparent;
                this.btnDelFolder.Cursor = System.Windows.Forms.Cursors.Hand;
                this.btnDelFolder.Image = global::DareMediaTray.Properties.Resources.folder_delete;
                this.btnDelFolder.Location = new System.Drawing.Point(151, 6);
                this.btnDelFolder.Name = "btnDelFolder";
                this.btnDelFolder.Size = new System.Drawing.Size(16, 16);
                this.btnDelFolder.TabIndex = 19;
                this.btnDelFolder.TabStop = false;
                this.btnDelFolder.Click += new System.EventHandler(this.btnDelFolder_Click);
                // 
                // btnEditFolder
                // 
                this.btnEditFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
                this.btnEditFolder.BackColor = System.Drawing.Color.Transparent;
                this.btnEditFolder.Cursor = System.Windows.Forms.Cursors.Hand;
                this.btnEditFolder.Image = global::DareMediaTray.Properties.Resources.folder_edit;
                this.btnEditFolder.Location = new System.Drawing.Point(130, 6);
                this.btnEditFolder.Name = "btnEditFolder";
                this.btnEditFolder.Size = new System.Drawing.Size(16, 16);
                this.btnEditFolder.TabIndex = 18;
                this.btnEditFolder.TabStop = false;
                this.btnEditFolder.Click += new System.EventHandler(this.btnEditFolder_Click);
                // 
                // btnAddFolder
                // 
                this.btnAddFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
                this.btnAddFolder.BackColor = System.Drawing.Color.Transparent;
                this.btnAddFolder.Cursor = System.Windows.Forms.Cursors.Hand;
                this.btnAddFolder.Image = global::DareMediaTray.Properties.Resources.folder_add;
                this.btnAddFolder.Location = new System.Drawing.Point(109, 6);
                this.btnAddFolder.Name = "btnAddFolder";
                this.btnAddFolder.Size = new System.Drawing.Size(16, 16);
                this.btnAddFolder.TabIndex = 17;
                this.btnAddFolder.TabStop = false;
                this.btnAddFolder.Click += new System.EventHandler(this.btnAddFolder_Click);
                // 
                // label1
                // 
                this.label1.AutoSize = true;
                this.label1.BackColor = System.Drawing.Color.Transparent;
                this.label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
                this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(99)))), ((int)(((byte)(162)))));
                this.label1.Location = new System.Drawing.Point(15, 8);
                this.label1.Name = "label1";
                this.label1.Size = new System.Drawing.Size(57, 12);
                this.label1.TabIndex = 3;
                this.label1.Text = "媒体目录";
                // 
                // pictureBox2
                // 
                this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
                this.pictureBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox2.BackgroundImage")));
                this.pictureBox2.Location = new System.Drawing.Point(8, 10);
                this.pictureBox2.Name = "pictureBox2";
                this.pictureBox2.Size = new System.Drawing.Size(4, 7);
                this.pictureBox2.TabIndex = 2;
                this.pictureBox2.TabStop = false;
                // 
                // folderTrview
                // 
                this.folderTrview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                            | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.folderTrview.Location = new System.Drawing.Point(6, 36);
                this.folderTrview.Name = "folderTrview";
                this.folderTrview.Size = new System.Drawing.Size(183, 490);
                this.folderTrview.TabIndex = 15;
                this.folderTrview.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.folderTrview_AfterSelect);
                this.folderTrview.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.folderTrview_NodeMouseClick);
                // 
                // pageControl1
                // 
                this.pageControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.pageControl1.BackColor = System.Drawing.Color.Transparent;
                this.pageControl1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pageControl1.BackgroundImage")));
                this.pageControl1.DisplayStyle = Dare.DN.ControlLib.PageControl.DisplayStyleEnum.Image;
                this.pageControl1.Location = new System.Drawing.Point(5, 500);
                this.pageControl1.Name = "pageControl1";
                this.pageControl1.RecordCount = 30;
                this.pageControl1.Size = new System.Drawing.Size(785, 27);
                this.pageControl1.TabIndex = 15;
                this.pageControl1.TextImageRalitions = Dare.DN.ControlLib.PageControl.TextImageRalitionEnum.ImageInTextFore;
                this.pageControl1.PageIndexChanged += new Dare.DN.ControlLib.PageControl.EventHandler(this.pageControl1_PageIndexChanged);
                // 
                // mdLView
                // 
                this.mdLView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                            | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.mdLView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                this.chName,
                this.chType,
                this.chState,
                this.chCount,
                this.chSize,
                this.chWith,
                this.chHeight,
                this.chCreateTime});
                this.mdLView.ContextMenuStrip = this.contextMenuStrip1;
                this.mdLView.Location = new System.Drawing.Point(5, 36);
                this.mdLView.Name = "mdLView";
                this.mdLView.Size = new System.Drawing.Size(785, 460);
                this.mdLView.TabIndex = 0;
                this.mdLView.UseCompatibleStateImageBehavior = false;
                this.mdLView.View = System.Windows.Forms.View.Details;
                this.mdLView.DoubleClick += new System.EventHandler(this.mdLView_DoubleClick);
                this.mdLView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.MediaLView_ColumnClick);
                // 
                // chName
                // 
                this.chName.Text = "媒体名称";
                this.chName.Width = 211;
                // 
                // chType
                // 
                this.chType.Text = "类型";
                // 
                // chState
                // 
                this.chState.Text = "状态";
                this.chState.Width = 75;
                // 
                // chCount
                // 
                this.chCount.Text = "使用次数";
                this.chCount.Width = 80;
                // 
                // chSize
                // 
                this.chSize.Text = "容量";
                this.chSize.Width = 75;
                // 
                // chWith
                // 
                this.chWith.Text = "宽度";
                // 
                // chHeight
                // 
                this.chHeight.Text = "高度";
                // 
                // chCreateTime
                // 
                this.chCreateTime.Text = "创建日期";
                this.chCreateTime.Width = 130;
                // 
                // contextMenuStrip1
                // 
                this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.importMenuItem,
                this.editerMenuItem,
                this.deleteMenuItem,
                this.refreshMenuItem,
                this.convertMenuItem});
                this.contextMenuStrip1.Name = "contextMenuStrip1";
                this.contextMenuStrip1.Size = new System.Drawing.Size(119, 114);
                // 
                // importMenuItem
                // 
                this.importMenuItem.Image = global::DareMediaTray.Properties.Resources.add;
                this.importMenuItem.Name = "importMenuItem";
                this.importMenuItem.Size = new System.Drawing.Size(118, 22);
                this.importMenuItem.Text = "导入媒体";
                this.importMenuItem.Click += new System.EventHandler(this.importMenuItem_Click);
                // 
                // editerMenuItem
                // 
                this.editerMenuItem.Image = global::DareMediaTray.Properties.Resources.pencil;
                this.editerMenuItem.Name = "editerMenuItem";
                this.editerMenuItem.Size = new System.Drawing.Size(118, 22);
                this.editerMenuItem.Text = "编辑媒体";
                this.editerMenuItem.Click += new System.EventHandler(this.editerMenuItem_Click);
                // 
                // deleteMenuItem
                // 
                this.deleteMenuItem.Image = global::DareMediaTray.Properties.Resources.delete;
                this.deleteMenuItem.Name = "deleteMenuItem";
                this.deleteMenuItem.Size = new System.Drawing.Size(118, 22);
                this.deleteMenuItem.Text = "删除媒体";
                this.deleteMenuItem.Click += new System.EventHandler(this.deleteMenuItem_Click);
                // 
                // refreshMenuItem
                // 
                this.refreshMenuItem.Image = global::DareMediaTray.Properties.Resources.arrow_refresh;
                this.refreshMenuItem.Name = "refreshMenuItem";
                this.refreshMenuItem.Size = new System.Drawing.Size(118, 22);
                this.refreshMenuItem.Text = "刷新媒体";
                this.refreshMenuItem.Click += new System.EventHandler(this.refreshMenuItem_Click);
                // 
                // convertMenuItem
                // 
                this.convertMenuItem.Image = global::DareMediaTray.Properties.Resources.report_edit;
                this.convertMenuItem.Name = "convertMenuItem";
                this.convertMenuItem.Size = new System.Drawing.Size(118, 22);
                this.convertMenuItem.Text = "文档转换";
                this.convertMenuItem.Click += new System.EventHandler(this.convertMenuItem_Click);
                // 
                // panel21
                // 
                this.panel21.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.panel21.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel21.BackgroundImage")));
                this.panel21.Controls.Add(this.panel1);
                this.panel21.Controls.Add(this.label2);
                this.panel21.Controls.Add(this.pictureBox1);
                this.panel21.Location = new System.Drawing.Point(1, 1);
                this.panel21.Name = "panel21";
                this.panel21.Size = new System.Drawing.Size(794, 29);
                this.panel21.TabIndex = 14;
                // 
                // panel1
                // 
                this.panel1.Anchor = System.Windows.Forms.AnchorStyles.Right;
                this.panel1.BackColor = System.Drawing.Color.Transparent;
                this.panel1.Controls.Add(this.label3);
                this.panel1.Controls.Add(this.btnSearch);
                this.panel1.Controls.Add(this.txtSearch);
                this.panel1.Controls.Add(this.pictureBox3);
                this.panel1.Location = new System.Drawing.Point(372, 4);
                this.panel1.Name = "panel1";
                this.panel1.Size = new System.Drawing.Size(415, 21);
                this.panel1.TabIndex = 4;
                // 
                // label3
                // 
                this.label3.AutoSize = true;
                this.label3.BackColor = System.Drawing.Color.Transparent;
                this.label3.Cursor = System.Windows.Forms.Cursors.Hand;
                this.label3.Location = new System.Drawing.Point(49, 4);
                this.label3.Name = "label3";
                this.label3.Size = new System.Drawing.Size(59, 12);
                this.label3.TabIndex = 6;
                this.label3.Text = "媒体名称:";
                // 
                // btnSearch
                // 
                this.btnSearch.AutoSize = true;
                this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
                this.btnSearch.Location = new System.Drawing.Point(376, 4);
                this.btnSearch.Name = "btnSearch";
                this.btnSearch.Size = new System.Drawing.Size(35, 12);
                this.btnSearch.TabIndex = 5;
                this.btnSearch.Text = "查 询";
                this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
                // 
                // txtSearch
                // 
                this.txtSearch.Location = new System.Drawing.Point(110, 0);
                this.txtSearch.Name = "txtSearch";
                this.txtSearch.Size = new System.Drawing.Size(244, 21);
                this.txtSearch.TabIndex = 0;
                this.txtSearch.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtSearch_KeyPress);
                // 
                // pictureBox3
                // 
                this.pictureBox3.Image = global::DareMediaTray.Properties.Resources.find;
                this.pictureBox3.Location = new System.Drawing.Point(358, 2);
                this.pictureBox3.Name = "pictureBox3";
                this.pictureBox3.Size = new System.Drawing.Size(16, 16);
                this.pictureBox3.TabIndex = 0;
                this.pictureBox3.TabStop = false;
                // 
                // label2
                // 
                this.label2.AutoSize = true;
                this.label2.BackColor = System.Drawing.Color.Transparent;
                this.label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
                this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(99)))), ((int)(((byte)(162)))));
                this.label2.Location = new System.Drawing.Point(15, 8);
                this.label2.Name = "label2";
                this.label2.Size = new System.Drawing.Size(57, 12);
                this.label2.TabIndex = 3;
                this.label2.Text = "媒体列表";
                // 
                // pictureBox1
                // 
                this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
                this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
                this.pictureBox1.Location = new System.Drawing.Point(8, 10);
                this.pictureBox1.Name = "pictureBox1";
                this.pictureBox1.Size = new System.Drawing.Size(4, 7);
                this.pictureBox1.TabIndex = 2;
                this.pictureBox1.TabStop = false;
                // 
                // panel5
                // 
                this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.panel5.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel5.BackgroundImage")));
                this.panel5.Controls.Add(this.btnConvert);
                this.panel5.Controls.Add(this.btnRefresh);
                this.panel5.Controls.Add(this.btnEdit);
                this.panel5.Controls.Add(this.btnDelete);
                this.panel5.Controls.Add(this.btnImport);
                this.panel5.Location = new System.Drawing.Point(0, 0);
                this.panel5.Name = "panel5";
                this.panel5.Size = new System.Drawing.Size(1014, 33);
                this.panel5.TabIndex = 3;
                // 
                // btnConvert
                // 
                this.btnConvert.Cursor = System.Windows.Forms.Cursors.Hand;
                this.btnConvert.FlatAppearance.BorderSize = 0;
                this.btnConvert.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(142)))), ((int)(((byte)(231)))));
                this.btnConvert.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(95)))), ((int)(((byte)(154)))));
                this.btnConvert.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
                this.btnConvert.ForeColor = System.Drawing.Color.Transparent;
                this.btnConvert.Image = global::DareMediaTray.Properties.Resources.report_edit;
                this.btnConvert.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
                this.btnConvert.Location = new System.Drawing.Point(250, 5);
                this.btnConvert.Name = "btnConvert";
                this.btnConvert.Size = new System.Drawing.Size(55, 23);
                this.btnConvert.TabIndex = 4;
                this.btnConvert.Text = "转换";
                this.btnConvert.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                this.btnConvert.UseVisualStyleBackColor = true;
                this.btnConvert.Click += new System.EventHandler(this.btnConvert_Click);
                // 
                // btnRefresh
                // 
                this.btnRefresh.Cursor = System.Windows.Forms.Cursors.Hand;
                this.btnRefresh.FlatAppearance.BorderSize = 0;
                this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(142)))), ((int)(((byte)(231)))));
                this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(95)))), ((int)(((byte)(154)))));
                this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
                this.btnRefresh.ForeColor = System.Drawing.Color.Transparent;
                this.btnRefresh.Image = global::DareMediaTray.Properties.Resources.arrow_refresh;
                this.btnRefresh.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
                this.btnRefresh.Location = new System.Drawing.Point(190, 5);
                this.btnRefresh.Name = "btnRefresh";
                this.btnRefresh.Size = new System.Drawing.Size(60, 23);
                this.btnRefresh.TabIndex = 3;
                this.btnRefresh.Text = "刷 新";
                this.btnRefresh.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                this.btnRefresh.UseVisualStyleBackColor = true;
                this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
                // 
                // btnEdit
                // 
                this.btnEdit.Cursor = System.Windows.Forms.Cursors.Hand;
                this.btnEdit.FlatAppearance.BorderSize = 0;
                this.btnEdit.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(142)))), ((int)(((byte)(231)))));
                this.btnEdit.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(95)))), ((int)(((byte)(154)))));
                this.btnEdit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
                this.btnEdit.ForeColor = System.Drawing.Color.Transparent;
                this.btnEdit.Image = global::DareMediaTray.Properties.Resources.pencil;
                this.btnEdit.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
                this.btnEdit.Location = new System.Drawing.Point(130, 5);
                this.btnEdit.Name = "btnEdit";
                this.btnEdit.Size = new System.Drawing.Size(60, 23);
                this.btnEdit.TabIndex = 2;
                this.btnEdit.Text = "编 辑";
                this.btnEdit.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                this.btnEdit.UseVisualStyleBackColor = true;
                this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
                // 
                // btnDelete
                // 
                this.btnDelete.Cursor = System.Windows.Forms.Cursors.Hand;
                this.btnDelete.FlatAppearance.BorderSize = 0;
                this.btnDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(142)))), ((int)(((byte)(231)))));
                this.btnDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(95)))), ((int)(((byte)(154)))));
                this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
                this.btnDelete.ForeColor = System.Drawing.Color.Transparent;
                this.btnDelete.Image = global::DareMediaTray.Properties.Resources.delete;
                this.btnDelete.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
                this.btnDelete.Location = new System.Drawing.Point(70, 5);
                this.btnDelete.Name = "btnDelete";
                this.btnDelete.Size = new System.Drawing.Size(60, 23);
                this.btnDelete.TabIndex = 1;
                this.btnDelete.Text = "删 除";
                this.btnDelete.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                this.btnDelete.UseVisualStyleBackColor = true;
                this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
                // 
                // btnImport
                // 
                this.btnImport.Cursor = System.Windows.Forms.Cursors.Hand;
                this.btnImport.FlatAppearance.BorderSize = 0;
                this.btnImport.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(142)))), ((int)(((byte)(231)))));
                this.btnImport.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(95)))), ((int)(((byte)(154)))));
                this.btnImport.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
                this.btnImport.ForeColor = System.Drawing.Color.Transparent;
                this.btnImport.Image = global::DareMediaTray.Properties.Resources.add;
                this.btnImport.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
                this.btnImport.Location = new System.Drawing.Point(10, 5);
                this.btnImport.Name = "btnImport";
                this.btnImport.Size = new System.Drawing.Size(60, 23);
                this.btnImport.TabIndex = 0;
                this.btnImport.Text = "导 入";
                this.btnImport.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                this.btnImport.UseVisualStyleBackColor = true;
                this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
                // 
                // imageList1
                // 
                this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
                this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
                this.imageList1.Images.SetKeyName(0, "folder.gif");
                this.imageList1.Images.SetKeyName(1, "folder_open.gif");
                this.imageList1.Images.SetKeyName(2, "folders.gif");
                // 
                // contextMenuStrip2
                // 
                this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.importFdMenuItem,
                this.addFdMenuItem,
                this.editFdMenuItem,
                this.delFdMenuItem});
                this.contextMenuStrip2.Name = "contextMenuStrip1";
                this.contextMenuStrip2.Size = new System.Drawing.Size(119, 92);
                // 
                // importFdMenuItem
                // 
                this.importFdMenuItem.Image = global::DareMediaTray.Properties.Resources.add;
                this.importFdMenuItem.Name = "importFdMenuItem";
                this.importFdMenuItem.Size = new System.Drawing.Size(118, 22);
                this.importFdMenuItem.Text = "导入媒体";
                this.importFdMenuItem.Click += new System.EventHandler(this.importFdMenuItem_Click);
                // 
                // addFdMenuItem
                // 
                this.addFdMenuItem.Image = global::DareMediaTray.Properties.Resources.folder_add;
                this.addFdMenuItem.Name = "addFdMenuItem";
                this.addFdMenuItem.Size = new System.Drawing.Size(118, 22);
                this.addFdMenuItem.Text = "添加目录";
                this.addFdMenuItem.Click += new System.EventHandler(this.addFdMenuItem_Click);
                // 
                // editFdMenuItem
                // 
                this.editFdMenuItem.Image = global::DareMediaTray.Properties.Resources.folder_edit;
                this.editFdMenuItem.Name = "editFdMenuItem";
                this.editFdMenuItem.Size = new System.Drawing.Size(118, 22);
                this.editFdMenuItem.Text = "编辑目录";
                this.editFdMenuItem.Click += new System.EventHandler(this.editFdMenuItem_Click);
                // 
                // delFdMenuItem
                // 
                this.delFdMenuItem.Image = global::DareMediaTray.Properties.Resources.folder_delete;
                this.delFdMenuItem.Name = "delFdMenuItem";
                this.delFdMenuItem.Size = new System.Drawing.Size(118, 22);
                this.delFdMenuItem.Text = "删除目录";
                this.delFdMenuItem.Click += new System.EventHandler(this.delFdMenuItem_Click);
                // 
                // MediaUC
                // 
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
                this.BackColor = System.Drawing.Color.Transparent;
                this.Controls.Add(this.plMd);
                this.Name = "MediaUC";
                this.Size = new System.Drawing.Size(1015, 581);
                this.plMd.ResumeLayout(false);
                this.panel18.ResumeLayout(false);
                this.splitContainer1.Panel1.ResumeLayout(false);
                this.splitContainer1.Panel2.ResumeLayout(false);
                this.splitContainer1.ResumeLayout(false);
                this.panel20.ResumeLayout(false);
                this.panel20.PerformLayout();
                ((System.ComponentModel.ISupportInitialize)(this.btnFreshFolder)).EndInit();
                ((System.ComponentModel.ISupportInitialize)(this.btnDelFolder)).EndInit();
                ((System.ComponentModel.ISupportInitialize)(this.btnEditFolder)).EndInit();
                ((System.ComponentModel.ISupportInitialize)(this.btnAddFolder)).EndInit();
                ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
                this.contextMenuStrip1.ResumeLayout(false);
                this.panel21.ResumeLayout(false);
                this.panel21.PerformLayout();
                this.panel1.ResumeLayout(false);
                this.panel1.PerformLayout();
                ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
                ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
                this.panel5.ResumeLayout(false);
                this.contextMenuStrip2.ResumeLayout(false);
                this.ResumeLayout(false);
    
            }
    
            #endregion
    
            private System.Windows.Forms.Panel plMd;
            private System.Windows.Forms.Panel panel18;
            private System.Windows.Forms.Panel panel5;
            private System.Windows.Forms.Button btnImport;
            private System.Windows.Forms.Button btnRefresh;
            private System.Windows.Forms.Button btnEdit;
            private System.Windows.Forms.Button btnDelete;
            private System.Windows.Forms.ImageList imageList1;
            private System.Windows.Forms.SplitContainer splitContainer1;
            private System.Windows.Forms.Panel panel20;
            private System.Windows.Forms.Label label1;
            private System.Windows.Forms.PictureBox pictureBox2;
            private System.Windows.Forms.TreeView folderTrview;
            private Dare.DN.ControlLib.PageControl pageControl1;
            private System.Windows.Forms.ListView mdLView;
            private System.Windows.Forms.ColumnHeader chName;
            private System.Windows.Forms.Panel panel21;
            private System.Windows.Forms.Label label2;
            private System.Windows.Forms.PictureBox pictureBox1;
            private System.Windows.Forms.ColumnHeader chType;
            private System.Windows.Forms.ColumnHeader chSize;
            private System.Windows.Forms.ColumnHeader chWith;
            private System.Windows.Forms.ColumnHeader chHeight;
            private System.Windows.Forms.ColumnHeader chCreateTime;
            private System.Windows.Forms.TextBox txtSearch;
            private System.Windows.Forms.Panel panel1;
            private System.Windows.Forms.Label btnSearch;
            private System.Windows.Forms.PictureBox pictureBox3;
            private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
            private System.Windows.Forms.ToolStripMenuItem importMenuItem;
            private System.Windows.Forms.ToolStripMenuItem deleteMenuItem;
            private System.Windows.Forms.ToolStripMenuItem refreshMenuItem;
            private System.Windows.Forms.ContextMenuStrip contextMenuStrip2;
            private System.Windows.Forms.ToolStripMenuItem importFdMenuItem;
            private System.Windows.Forms.ToolStripMenuItem editerMenuItem;
            private System.Windows.Forms.Label label3;
            private System.Windows.Forms.ColumnHeader chState;
            private System.Windows.Forms.Button btnConvert;
            private System.Windows.Forms.ToolStripMenuItem convertMenuItem;
            private System.Windows.Forms.ColumnHeader chCount;
            private System.Windows.Forms.ToolStripMenuItem addFdMenuItem;
            private System.Windows.Forms.ToolStripMenuItem editFdMenuItem;
            private System.Windows.Forms.ToolStripMenuItem delFdMenuItem;
            private System.Windows.Forms.PictureBox btnFreshFolder;
            private System.Windows.Forms.PictureBox btnDelFolder;
            private System.Windows.Forms.PictureBox btnEditFolder;
            private System.Windows.Forms.PictureBox btnAddFolder;
    
        }

    panel搞定所有的布局,那么这种模拟窗体布局方式,窗体的事件咋办。那就要依靠用户控件事件委托来搞定:

     public partial class ImageButton : UserControl
        {
            private Image p1;
            private Image p2;
            private Image p3;
    
            public delegate void ClickEventHandler(object sender, EventArgs e);
            public new event ClickEventHandler Click;
    
            public ImageButton()
            {
                InitializeComponent();
            }
    
            [Category("重要属性")]
            [Description("按钮默认显示的图片")]
            public Image ButtonImage
            {
                get
                {
                    return this.pbImage.Image;
                }
                set
                {
                    this.pbImage.Image = value;
                    this.p1 = value;
                }
            }
            [Category("重要属性")]
            [Description("按钮中要显示的文本")]
            public string ButtonText
            {
                get
                {
                    return this.lblTemp.Text;
                }
                set
                {
                    this.lblTemp.Text = value;
                }
            }
    
            [Category("重要属性")]
            [Description("单击按钮时候显示的图片")]
            public Image MouseClickImage
            {
                get
                {
                    return this.p3;
                }
                set
                {
                    this.p3 = value;
                }
            }
    
            [Category("重要属性")]
            [Description("鼠标移动到按钮上时显示的图片")]
            public Image MouseOverImage
            {
                get
                {
                    return this.p2;
                }
                set
                {
                    this.p2 = value;
                }
            }
    
            private void ImageButton_Resize(object sender, EventArgs e)
            {
                this.lblTemp.Left = (int)Math.Round((double)((((double)this.pbImage.Width) / 2.0) - (((double)this.lblTemp.Width) / 2.0)));
                this.lblTemp.Top = (int)Math.Round((double)(((double)this.pbImage.Height) / 2.0))+15;
            }
    
            private void ImageButton_Load(object sender, EventArgs e)
            {
                this.lblTemp.Parent = this.pbImage;
                this.lblTemp.Width = this.pbImage.Width;
                this.pbImage.Image = this.p1;
                this.lblTemp.Left = (int)Math.Round((double)((((double)this.pbImage.Width) / 2.0) - (((double)this.lblTemp.Width) / 2.0)));
                this.lblTemp.Top = (int)Math.Round((double)(((double)this.pbImage.Height) / 2.0)) + 15;
            }
    
            private void lblTemp_Click(object sender, EventArgs e)
            {
                ClickEventHandler clickEvent = this.Click;
                if (clickEvent != null)
                {
                    clickEvent(this, e);
                }
            }
    
            private void lblTemp_MouseDown(object sender, MouseEventArgs e)
            {
                this.Cursor = Cursors.Hand;
                this.pbImage.Image = this.p3;
            }
    
            private void lblTemp_MouseEnter(object sender, EventArgs e)
            {
                this.Cursor = Cursors.Hand;
                this.pbImage.Image = this.p2;
            }
    
            private void lblTemp_MouseHover(object sender, EventArgs e)
            {
                this.Cursor = Cursors.Hand;
                this.pbImage.Image = this.p2;
            }
    
            private void lblTemp_MouseLeave(object sender, EventArgs e)
            {
                this.Cursor = Cursors.Hand;
                this.pbImage.Image = this.p1;
            }
    
            private void lblTemp_MouseUp(object sender, MouseEventArgs e)
            {
                this.Cursor = Cursors.Hand;
                this.pbImage.Image = this.p1;
            }
    
            private void lblTemp_TextChanged(object sender, EventArgs e)
            {
                this.lblTemp.Parent = this.pbImage;
                this.lblTemp.Width = this.pbImage.Width;
                this.lblTemp.Left = (int)Math.Round((double)((((double)this.pbImage.Width) / 2.0) - (((double)this.lblTemp.Width) / 2.0)));
                this.lblTemp.Top = (int)Math.Round((double)((((double)this.pbImage.Height) / 2.0) - (((double)this.lblTemp.Height) / 2.0)));
            }
    
            private void pbImage_BackgroundImageChanged(object sender, EventArgs e)
            {
                this.pbImage.Refresh();
            }
    
            private void pbImage_Click(object sender, EventArgs e)
            {
                ClickEventHandler clickEvent = this.Click;
                if (clickEvent != null)
                {
                    clickEvent(this, e);
                }
            }
    
            private void pbImage_MouseDown(object sender, MouseEventArgs e)
            {
                this.Cursor = Cursors.Hand;
                this.pbImage.Image = this.p3;
            }
    
            private void pbImage_MouseEnter(object sender, EventArgs e)
            {
                this.Cursor = Cursors.Hand;
                this.pbImage.Image = this.p2;
            }
    
            private void pbImage_MouseHover(object sender, EventArgs e)
            {
                this.Cursor = Cursors.Hand;
                this.pbImage.Image = this.p2;
            }
    
            private void pbImage_MouseLeave(object sender, EventArgs e)
            {
                this.Cursor = Cursors.Hand;
                this.pbImage.Image = this.p1;
            }
    
            private void pbImage_MouseUp(object sender, MouseEventArgs e)
            {
                this.Cursor = Cursors.Hand;
                this.pbImage.Image = this.p2;
            }
    
    
        }

    感兴趣的朋友扫下面的二维码给点打赏吧,留下QQ或邮箱方便我发送源码!

                      

  • 相关阅读:
    Mysql命令行查看数据库大小(数据库版本为5.7以上)
    三大语言实例 (python,C/C++,Java)
    git ssh创建秘钥
    Git 安装和使用教程
    Windows sql语句正则匹配导出数据到本地 The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
    sql语句语句中的正则查找
    触宝 求子串问题
    Java中10个流对象重点掌握
    Java I/O流
    Java 增强 for 循环
  • 原文地址:https://www.cnblogs.com/fx2008/p/3430302.html
Copyright © 2011-2022 走看看