告诉你吧,一套皮肤在winform与wpf开发模式下实现的界面效果同样精彩。winform界面和wpf界面。

一、同一资源:

告诉你吧,一套皮肤在winform与wpf开发模式下实现的界面效果同样精彩。winform界面和wpf界面。_第1张图片

二、先上软件界面:

(1)wpf界面:

告诉你吧,一套皮肤在winform与wpf开发模式下实现的界面效果同样精彩。winform界面和wpf界面。_第2张图片

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

(2)winform界面
告诉你吧,一套皮肤在winform与wpf开发模式下实现的界面效果同样精彩。winform界面和wpf界面。_第3张图片

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

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

Code Snippet
  1. partial class MainFrm
  2.     {
  3.         ///<summary>
  4.         /// Required designer variable.
  5.         ///</summary>
  6.         private System.ComponentModel.IContainer components = null;
  7.  
  8.         ///<summary>
  9.         /// Clean up any resources being used.
  10.         ///</summary>
  11.         ///<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
  12.         protected override void Dispose(bool disposing)
  13.         {
  14.             if (disposing && (components != null))
  15.             {
  16.                 components.Dispose();
  17.             }
  18.             base.Dispose(disposing);
  19.         }
  20.  
  21.         #region Windows Form Designer generated code
  22.  
  23.         ///<summary>
  24.         /// Required method for Designer support - do not modify
  25.         /// the contents of this method with the code editor.
  26.         ///</summary>
  27.         private void InitializeComponent()
  28.         {
  29.             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainFrm));
  30.             this.mainPnl = new System.Windows.Forms.Panel();
  31.             this.bottomPnl = new System.Windows.Forms.Panel();
  32.             this.mainContentPnl = new System.Windows.Forms.Panel();
  33.             this.panel1 = new System.Windows.Forms.Panel();
  34.             this.panel4 = new System.Windows.Forms.Panel();
  35.             this.lblVersion = new System.Windows.Forms.Label();
  36.             this.panel13 = new System.Windows.Forms.Panel();
  37.             this.lblCopyright = new System.Windows.Forms.Label();
  38.             this.panel12 = new System.Windows.Forms.Panel();
  39.             this.panel3 = new System.Windows.Forms.Panel();
  40.             this.tabControl1 = new Dare.DN.ControlLib.TabControl();
  41.             this.tabPage1 = new System.Windows.Forms.TabPage();
  42.             this.tabPage2 = new System.Windows.Forms.TabPage();
  43.             this.tabPage3 = new System.Windows.Forms.TabPage();
  44.             this.tabPage4 = new System.Windows.Forms.TabPage();
  45.             this.tabPage5 = new System.Windows.Forms.TabPage();
  46.             this.tabPage6 = new System.Windows.Forms.TabPage();
  47.             this.panel10 = new System.Windows.Forms.Panel();
  48.             this.tabPage7 = new System.Windows.Forms.TabPage();
  49.             this.panel11 = new System.Windows.Forms.Panel();
  50.             this.panel2 = new System.Windows.Forms.Panel();
  51.             //this.lblProCode = new System.Windows.Forms.Label();
  52.             this.panel14 = new System.Windows.Forms.Panel();
  53.             this.imgBtnSysconfig = new Dare.DN.ControlLib.ImageButton();
  54.             this.imgBtnExt = new Dare.DN.ControlLib.ImageButton();
  55.             this.imgBtnAbout = new Dare.DN.ControlLib.ImageButton();
  56.             this.imgBtnTerminal = new Dare.DN.ControlLib.ImageButton();
  57.             this.imgBtnProgram = new Dare.DN.ControlLib.ImageButton();
  58.             this.imgBtnMedia = new Dare.DN.ControlLib.ImageButton();
  59.             this.mainRPnl = new System.Windows.Forms.Panel();
  60.             this.mainLPnl = new System.Windows.Forms.Panel();
  61.             this.topPnl = new System.Windows.Forms.Panel();
  62.             this.topRPnl = new System.Windows.Forms.Panel();
  63.             this.panel9 = new System.Windows.Forms.Panel();
  64.             this.btnMax = new Dare.DN.ControlLib.SysButton();
  65.             this.btnMin = new Dare.DN.ControlLib.SysButton();
  66.             this.btnClose = new Dare.DN.ControlLib.SysButton();
  67.             this.topLPnl = new System.Windows.Forms.Panel();
  68.             this.pictureBox1 = new System.Windows.Forms.PictureBox();
  69.             this.lblTitle = new System.Windows.Forms.Label();
  70.             this.mediaUC1 = new DareMediaTray.MediaUC();
  71.             this.programUC1 = new DareMediaTray.ProgramUC();
  72.             this.terminalUC1 = new DareMediaTray.TerminalUC();
  73.             this.mainPnl.SuspendLayout();
  74.             this.mainContentPnl.SuspendLayout();
  75.             this.panel1.SuspendLayout();
  76.             this.panel4.SuspendLayout();
  77.             this.panel13.SuspendLayout();
  78.             this.panel3.SuspendLayout();
  79.             this.tabControl1.SuspendLayout();
  80.             this.tabPage1.SuspendLayout();
  81.             this.tabPage2.SuspendLayout();
  82.             this.tabPage3.SuspendLayout();
  83.             this.tabPage6.SuspendLayout();
  84.             this.tabPage7.SuspendLayout();
  85.             this.panel2.SuspendLayout();
  86.             this.panel14.SuspendLayout();
  87.             this.topPnl.SuspendLayout();
  88.             this.topRPnl.SuspendLayout();
  89.             this.panel9.SuspendLayout();
  90.             this.topLPnl.SuspendLayout();
  91.             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
  92.             this.SuspendLayout();
  93.             //
  94.             // mainPnl
  95.             //
  96.             this.mainPnl.BackColor = System.Drawing.SystemColors.ControlText;
  97.             this.mainPnl.Controls.Add(this.bottomPnl);
  98.             this.mainPnl.Controls.Add(this.mainContentPnl);
  99.             this.mainPnl.Controls.Add(this.mainRPnl);
  100.             this.mainPnl.Controls.Add(this.mainLPnl);
  101.             this.mainPnl.Controls.Add(this.topPnl);
  102.             this.mainPnl.Dock = System.Windows.Forms.DockStyle.Fill;
  103.             this.mainPnl.Location = new System.Drawing.Point(0, 0);
  104.             this.mainPnl.Name = "mainPnl";
  105.             this.mainPnl.Size = new System.Drawing.Size(1016, 716);
  106.             this.mainPnl.TabIndex = 0;
  107.             //
  108.             // bottomPnl
  109.             //
  110.             this.bottomPnl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
  111.                         | System.Windows.Forms.AnchorStyles.Right)));
  112.             this.bottomPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("bottomPnl.BackgroundImage")));
  113.             this.bottomPnl.Location = new System.Drawing.Point(-17, 714);
  114.             this.bottomPnl.Name = "bottomPnl";
  115.             this.bottomPnl.Size = new System.Drawing.Size(1031, 2);
  116.             this.bottomPnl.TabIndex = 3;
  117.             //
  118.             // mainContentPnl
  119.             //
  120.             this.mainContentPnl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  121.                         | System.Windows.Forms.AnchorStyles.Left)
  122.                         | System.Windows.Forms.AnchorStyles.Right)));
  123.             this.mainContentPnl.Controls.Add(this.panel1);
  124.             this.mainContentPnl.Location = new System.Drawing.Point(3, 23);
  125.             this.mainContentPnl.Name = "mainContentPnl";
  126.             this.mainContentPnl.Size = new System.Drawing.Size(1009, 690);
  127.             this.mainContentPnl.TabIndex = 4;
  128.             //
  129.             // panel1
  130.             //
  131.             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
  132.             this.panel1.Controls.Add(this.panel4);
  133.             this.panel1.Controls.Add(this.panel3);
  134.             this.panel1.Controls.Add(this.panel2);
  135.             this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
  136.             this.panel1.Location = new System.Drawing.Point(0, 0);
  137.             this.panel1.Name = "panel1";
  138.             this.panel1.Size = new System.Drawing.Size(1009, 690);
  139.             this.panel1.TabIndex = 1;
  140.             //
  141.             // panel4
  142.             //
  143.             this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
  144.                         | System.Windows.Forms.AnchorStyles.Right)));
  145.             this.panel4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel4.BackgroundImage")));
  146.             this.panel4.Controls.Add(this.lblVersion);
  147.             this.panel4.Controls.Add(this.panel13);
  148.             this.panel4.Controls.Add(this.panel12);
  149.             this.panel4.Location = new System.Drawing.Point(0, 657);
  150.             this.panel4.Name = "panel4";
  151.             this.panel4.Size = new System.Drawing.Size(1008, 33);
  152.             this.panel4.TabIndex = 2;
  153.             //
  154.             // lblVersion
  155.             //
  156.             this.lblVersion.AutoSize = true;
  157.             this.lblVersion.BackColor = System.Drawing.Color.Transparent;
  158.             this.lblVersion.ForeColor = System.Drawing.Color.DeepSkyBlue;
  159.             this.lblVersion.Location = new System.Drawing.Point(14, 11);
  160.             this.lblVersion.Name = "lblVersion";
  161.             this.lblVersion.Size = new System.Drawing.Size(131, 12);
  162.             this.lblVersion.TabIndex = 2;
  163.             this.lblVersion.Text = "当前版本:V 1.0.0.1245";
  164.             //
  165.             // panel13
  166.             //
  167.             this.panel13.Anchor = System.Windows.Forms.AnchorStyles.Right;
  168.             this.panel13.BackColor = System.Drawing.Color.Transparent;
  169.             this.panel13.Controls.Add(this.lblCopyright);
  170.             this.panel13.Location = new System.Drawing.Point(536, 0);
  171.             this.panel13.Name = "panel13";
  172.             this.panel13.Size = new System.Drawing.Size(455, 33);
  173.             this.panel13.TabIndex = 1;
  174.             //
  175.             // lblCopyright
  176.             //
  177.             this.lblCopyright.AutoSize = true;
  178.             this.lblCopyright.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  179.             this.lblCopyright.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(99)))), ((int)(((byte)(162)))));
  180.             this.lblCopyright.Location = new System.Drawing.Point(138, 9);
  181.             this.lblCopyright.Name = "lblCopyright";
  182.             this.lblCopyright.Size = new System.Drawing.Size(314, 15);
  183.             this.lblCopyright.TabIndex = 2;
  184.             this.lblCopyright.Text = "Copyright © 2002 - 2010 Dare-tech. All Rights Reserved ";
  185.             //
  186.             // panel12
  187.             //
  188.             this.panel12.Anchor = System.Windows.Forms.AnchorStyles.Right;
  189.             this.panel12.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel12.BackgroundImage")));
  190.             this.panel12.Location = new System.Drawing.Point(990, 0);
  191.             this.panel12.Name = "panel12";
  192.             this.panel12.Size = new System.Drawing.Size(18, 33);
  193.             this.panel12.TabIndex = 0;
  194.             //
  195.             // panel3
  196.             //
  197.             this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  198.                         | System.Windows.Forms.AnchorStyles.Left)
  199.                         | System.Windows.Forms.AnchorStyles.Right)));
  200.             this.panel3.Controls.Add(this.tabControl1);
  201.             this.panel3.Location = new System.Drawing.Point(1, 103);
  202.             this.panel3.Name = "panel3";
  203.             this.panel3.Size = new System.Drawing.Size(1006, 555);
  204.             this.panel3.TabIndex = 1;
  205.             //
  206.             // tabControl1
  207.             //
  208.             this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  209.                         | System.Windows.Forms.AnchorStyles.Left)
  210.                         | System.Windows.Forms.AnchorStyles.Right)));
  211.             this.tabControl1.Controls.Add(this.tabPage1);
  212.             this.tabControl1.Controls.Add(this.tabPage2);
  213.             this.tabControl1.Controls.Add(this.tabPage3);
  214.             this.tabControl1.Controls.Add(this.tabPage4);
  215.             this.tabControl1.Controls.Add(this.tabPage5);
  216.             this.tabControl1.Controls.Add(this.tabPage6);
  217.             this.tabControl1.Controls.Add(this.tabPage7);
  218.             this.tabControl1.HideTabs = true;
  219.             this.tabControl1.Location = new System.Drawing.Point(0, 0);
  220.             this.tabControl1.Multiline = true;
  221.             this.tabControl1.Name = "tabControl1";
  222.             this.tabControl1.SelectedIndex = 0;
  223.             this.tabControl1.Size = new System.Drawing.Size(1006, 555);
  224.             this.tabControl1.TabIndex = 1;
  225.             //
  226.             // tabPage1
  227.             //
  228.             this.tabPage1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
  229.             this.tabPage1.Controls.Add(this.mediaUC1);
  230.             this.tabPage1.Location = new System.Drawing.Point(0, 0);
  231.             this.tabPage1.Name = "tabPage1";
  232.             this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
  233.             this.tabPage1.Size = new System.Drawing.Size(1006, 555);
  234.             this.tabPage1.TabIndex = 0;
  235.             this.tabPage1.Text = "tabPage1";
  236.             //
  237.             // tabPage2
  238.             //
  239.             this.tabPage2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
  240.             this.tabPage2.Controls.Add(this.programUC1);
  241.             this.tabPage2.Location = new System.Drawing.Point(0, 0);
  242.             this.tabPage2.Name = "tabPage2";
  243.             this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
  244.             this.tabPage2.Size = new System.Drawing.Size(1006, 555);
  245.             this.tabPage2.TabIndex = 1;
  246.             this.tabPage2.Text = "tabPage2";
  247.             //
  248.             // tabPage3
  249.             //
  250.             this.tabPage3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
  251.             this.tabPage3.Controls.Add(this.terminalUC1);
  252.             this.tabPage3.Location = new System.Drawing.Point(0, 0);
  253.             this.tabPage3.Name = "tabPage3";
  254.             this.tabPage3.Size = new System.Drawing.Size(1006, 555);
  255.             this.tabPage3.TabIndex = 2;
  256.             this.tabPage3.Text = "tabPage3";
  257.             //
  258.             // tabPage4
  259.             //
  260.             this.tabPage4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
  261.             this.tabPage4.Location = new System.Drawing.Point(0, 0);
  262.             this.tabPage4.Name = "tabPage4";
  263.             this.tabPage4.Size = new System.Drawing.Size(1006, 555);
  264.             this.tabPage4.TabIndex = 3;
  265.             this.tabPage4.Text = "tabPage4";
  266.             //
  267.             // tabPage5
  268.             //
  269.             this.tabPage5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
  270.             this.tabPage5.Location = new System.Drawing.Point(0, 0);
  271.             this.tabPage5.Name = "tabPage5";
  272.             this.tabPage5.Size = new System.Drawing.Size(1006, 555);
  273.             this.tabPage5.TabIndex = 4;
  274.             this.tabPage5.Text = "tabPage5";
  275.             //
  276.             // tabPage6
  277.             //
  278.             this.tabPage6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
  279.             this.tabPage6.Controls.Add(this.panel10);
  280.             this.tabPage6.Location = new System.Drawing.Point(0, 0);
  281.             this.tabPage6.Name = "tabPage6";
  282.             this.tabPage6.Size = new System.Drawing.Size(1006, 555);
  283.             this.tabPage6.TabIndex = 5;
  284.             this.tabPage6.Text = "tabPage6";
  285.             //
  286.             // panel10
  287.             //
  288.             this.panel10.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  289.                         | System.Windows.Forms.AnchorStyles.Right)));
  290.             this.panel10.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel10.BackgroundImage")));
  291.             this.panel10.Location = new System.Drawing.Point(-4, 0);
  292.             this.panel10.Name = "panel10";
  293.             this.panel10.Size = new System.Drawing.Size(1013, 33);
  294.             this.panel10.TabIndex = 3;
  295.             //
  296.             // tabPage7
  297.             //
  298.             this.tabPage7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
  299.             this.tabPage7.Controls.Add(this.panel11);
  300.             this.tabPage7.Location = new System.Drawing.Point(0, 0);
  301.             this.tabPage7.Name = "tabPage7";
  302.             this.tabPage7.Size = new System.Drawing.Size(1006, 555);
  303.             this.tabPage7.TabIndex = 6;
  304.             this.tabPage7.Text = "tabPage7";
  305.             //
  306.             // panel11
  307.             //
  308.             this.panel11.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  309.                         | System.Windows.Forms.AnchorStyles.Right)));
  310.             this.panel11.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel11.BackgroundImage")));
  311.             this.panel11.Location = new System.Drawing.Point(-4, 0);
  312.             this.panel11.Name = "panel11";
  313.             this.panel11.Size = new System.Drawing.Size(1013, 33);
  314.             this.panel11.TabIndex = 3;
  315.             //
  316.             // panel2
  317.             //
  318.             this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  319.                         | System.Windows.Forms.AnchorStyles.Right)));
  320.             this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
  321.             this.panel2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel2.BackgroundImage")));
  322.             //this.panel2.Controls.Add(this.lblProCode);
  323.             this.panel2.Controls.Add(this.panel14);
  324.             this.panel2.Location = new System.Drawing.Point(1, -1);
  325.             this.panel2.Name = "panel2";
  326.             this.panel2.Size = new System.Drawing.Size(1008, 105);
  327.             this.panel2.TabIndex = 0;
  328.             ////
  329.             //// lblProCode
  330.             ////
  331.             //this.lblProCode.AutoSize = true;
  332.             //this.lblProCode.BackColor = System.Drawing.Color.Transparent;
  333.             //this.lblProCode.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  334.             //this.lblProCode.ForeColor = System.Drawing.Color.White;
  335.             //this.lblProCode.Location = new System.Drawing.Point(367, 59);
  336.             //this.lblProCode.Name = "lblProCode";
  337.             //this.lblProCode.Size = new System.Drawing.Size(72, 16);
  338.             //this.lblProCode.TabIndex = 1;
  339.             //this.lblProCode.Text = "(桌面��?";
  340.             //
  341.             // panel14
  342.             //
  343.             this.panel14.Anchor = System.Windows.Forms.AnchorStyles.Right;
  344.             this.panel14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
  345.             this.panel14.Controls.Add(this.imgBtnSysconfig);
  346.             this.panel14.Controls.Add(this.imgBtnExt);
  347.             this.panel14.Controls.Add(this.imgBtnAbout);
  348.             this.panel14.Controls.Add(this.imgBtnTerminal);
  349.             this.panel14.Controls.Add(this.imgBtnProgram);
  350.             this.panel14.Controls.Add(this.imgBtnMedia);
  351.             this.panel14.Location = new System.Drawing.Point(471, 2);
  352.             this.panel14.Name = "panel14";
  353.             this.panel14.Size = new System.Drawing.Size(537, 103);
  354.             this.panel14.TabIndex = 0;
  355.             //
  356.             // imgBtnSysconfig
  357.             //
  358.             this.imgBtnSysconfig.ButtonImage = ((System.Drawing.Image)(resources.GetObject("imgBtnSysconfig.ButtonImage")));
  359.             this.imgBtnSysconfig.ButtonText = "系统配置";
  360.             this.imgBtnSysconfig.Cursor = System.Windows.Forms.Cursors.Hand;
  361.             this.imgBtnSysconfig.Location = new System.Drawing.Point(361, 16);
  362.             this.imgBtnSysconfig.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("imgBtnSysconfig.MouseClickImage")));
  363.             this.imgBtnSysconfig.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("imgBtnSysconfig.MouseOverImage")));
  364.             this.imgBtnSysconfig.Name = "imgBtnSysconfig";
  365.             this.imgBtnSysconfig.Size = new System.Drawing.Size(85, 71);
  366.             this.imgBtnSysconfig.TabIndex = 11;
  367.             this.imgBtnSysconfig.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnSysconfig_Click);
  368.             //
  369.             // imgBtnExt
  370.             //
  371.             this.imgBtnExt.ButtonImage = ((System.Drawing.Image)(resources.GetObject("imgBtnExt.ButtonImage")));
  372.             this.imgBtnExt.ButtonText = "退出系��?quot;;
  373.             this.imgBtnExt.Cursor = System.Windows.Forms.Cursors.Hand;
  374.             this.imgBtnExt.Location = new System.Drawing.Point(449, 16);
  375.             this.imgBtnExt.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("imgBtnExt.MouseClickImage")));
  376.             this.imgBtnExt.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("imgBtnExt.MouseOverImage")));
  377.             this.imgBtnExt.Name = "imgBtnExt";
  378.             this.imgBtnExt.Size = new System.Drawing.Size(85, 71);
  379.             this.imgBtnExt.TabIndex = 10;
  380.             this.imgBtnExt.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnExt_Click);
  381.             //
  382.             // imgBtnAbout
  383.             //
  384.             this.imgBtnAbout.ButtonImage = ((System.Drawing.Image)(resources.GetObject("imgBtnAbout.ButtonImage")));
  385.             this.imgBtnAbout.ButtonText = "关于系统";
  386.             this.imgBtnAbout.Cursor = System.Windows.Forms.Cursors.Hand;
  387.             this.imgBtnAbout.Location = new System.Drawing.Point(273, 16);
  388.             this.imgBtnAbout.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("imgBtnAbout.MouseClickImage")));
  389.             this.imgBtnAbout.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("imgBtnAbout.MouseOverImage")));
  390.             this.imgBtnAbout.Name = "imgBtnAbout";
  391.             this.imgBtnAbout.Size = new System.Drawing.Size(85, 71);
  392.             this.imgBtnAbout.TabIndex = 9;
  393.             this.imgBtnAbout.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnAbout_Click);
  394.             //
  395.             // imgBtnTerminal
  396.             //
  397.             this.imgBtnTerminal.ButtonImage = ((System.Drawing.Image)(resources.GetObject("imgBtnTerminal.ButtonImage")));
  398.             this.imgBtnTerminal.ButtonText = "终端管理";
  399.             this.imgBtnTerminal.Cursor = System.Windows.Forms.Cursors.Hand;
  400.             this.imgBtnTerminal.Location = new System.Drawing.Point(185, 16);
  401.             this.imgBtnTerminal.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("imgBtnTerminal.MouseClickImage")));
  402.             this.imgBtnTerminal.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("imgBtnTerminal.MouseOverImage")));
  403.             this.imgBtnTerminal.Name = "imgBtnTerminal";
  404.             this.imgBtnTerminal.Size = new System.Drawing.Size(85, 71);
  405.             this.imgBtnTerminal.TabIndex = 8;
  406.             this.imgBtnTerminal.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnTerminal_Click);
  407.             //
  408.             // imgBtnProgram
  409.             //
  410.             this.imgBtnProgram.ButtonImage = ((System.Drawing.Image)(resources.GetObject("imgBtnProgram.ButtonImage")));
  411.             this.imgBtnProgram.ButtonText = "节目管理";
  412.             this.imgBtnProgram.Cursor = System.Windows.Forms.Cursors.Arrow;
  413.             this.imgBtnProgram.Location = new System.Drawing.Point(97, 16);
  414.             this.imgBtnProgram.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("imgBtnProgram.MouseClickImage")));
  415.             this.imgBtnProgram.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("imgBtnProgram.MouseOverImage")));
  416.             this.imgBtnProgram.Name = "imgBtnProgram";
  417.             this.imgBtnProgram.Size = new System.Drawing.Size(85, 71);
  418.             this.imgBtnProgram.TabIndex = 7;
  419.             this.imgBtnProgram.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnProgram_Click);
  420.             //
  421.             // imgBtnMedia
  422.             //
  423.             this.imgBtnMedia.ButtonImage = ((System.Drawing.Image)(resources.GetObject("imgBtnMedia.ButtonImage")));
  424.             this.imgBtnMedia.ButtonText = "媒体管理";
  425.             this.imgBtnMedia.Cursor = System.Windows.Forms.Cursors.Hand;
  426.             this.imgBtnMedia.Location = new System.Drawing.Point(9, 16);
  427.             this.imgBtnMedia.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("imgBtnMedia.MouseClickImage")));
  428.             this.imgBtnMedia.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("imgBtnMedia.MouseOverImage")));
  429.             this.imgBtnMedia.Name = "imgBtnMedia";
  430.             this.imgBtnMedia.Size = new System.Drawing.Size(85, 71);
  431.             this.imgBtnMedia.TabIndex = 6;
  432.             this.imgBtnMedia.Click += new Dare.DN.ControlLib.ImageButton.ClickEventHandler(this.imgBtnMedia_Click);
  433.             //
  434.             // mainRPnl
  435.             //
  436.             this.mainRPnl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  437.                         | System.Windows.Forms.AnchorStyles.Right)));
  438.             this.mainRPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("mainRPnl.BackgroundImage")));
  439.             this.mainRPnl.Location = new System.Drawing.Point(1014, 21);
  440.             this.mainRPnl.Name = "mainRPnl";
  441.             this.mainRPnl.Size = new System.Drawing.Size(2, 694);
  442.             this.mainRPnl.TabIndex = 2;
  443.             //
  444.             // mainLPnl
  445.             //
  446.             this.mainLPnl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  447.                         | System.Windows.Forms.AnchorStyles.Left)));
  448.             this.mainLPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("mainLPnl.BackgroundImage")));
  449.             this.mainLPnl.Location = new System.Drawing.Point(0, 21);
  450.             this.mainLPnl.Name = "mainLPnl";
  451.             this.mainLPnl.Size = new System.Drawing.Size(2, 694);
  452.             this.mainLPnl.TabIndex = 1;
  453.             //
  454.             // topPnl
  455.             //
  456.             this.topPnl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  457.                         | System.Windows.Forms.AnchorStyles.Right)));
  458.             this.topPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("topPnl.BackgroundImage")));
  459.             this.topPnl.Controls.Add(this.topRPnl);
  460.             this.topPnl.Controls.Add(this.topLPnl);
  461.             this.topPnl.Location = new System.Drawing.Point(0, 0);
  462.             this.topPnl.Name = "topPnl";
  463.             this.topPnl.Size = new System.Drawing.Size(1016, 23);
  464.             this.topPnl.TabIndex = 0;
  465.             this.topPnl.MouseDown += new System.Windows.Forms.MouseEventHandler(this.topPnl_MouseDown);
  466.             //
  467.             // topRPnl
  468.             //
  469.             this.topRPnl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  470.             this.topRPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("topRPnl.BackgroundImage")));
  471.             this.topRPnl.Controls.Add(this.panel9);
  472.             this.topRPnl.Location = new System.Drawing.Point(822, 0);
  473.             this.topRPnl.Name = "topRPnl";
  474.             this.topRPnl.Size = new System.Drawing.Size(195, 23);
  475.             this.topRPnl.TabIndex = 1;
  476.             //
  477.             // panel9
  478.             //
  479.             this.panel9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  480.             this.panel9.BackColor = System.Drawing.Color.Transparent;
  481.             this.panel9.Controls.Add(this.btnMax);
  482.             this.panel9.Controls.Add(this.btnMin);
  483.             this.panel9.Controls.Add(this.btnClose);
  484.             this.panel9.Location = new System.Drawing.Point(62, 2);
  485.             this.panel9.Name = "panel9";
  486.             this.panel9.Size = new System.Drawing.Size(130, 21);
  487.             this.panel9.TabIndex = 14;
  488.             //
  489.             // btnMax
  490.             //
  491.             this.btnMax.BackColor = System.Drawing.Color.Transparent;
  492.             this.btnMax.ButtonImage = ((System.Drawing.Image)(resources.GetObject("btnMax.ButtonImage")));
  493.             this.btnMax.ButtonText = "";
  494.             this.btnMax.Cursor = System.Windows.Forms.Cursors.Arrow;
  495.             this.btnMax.Location = new System.Drawing.Point(59, -1);
  496.             this.btnMax.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("btnMax.MouseClickImage")));
  497.             this.btnMax.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("btnMax.MouseOverImage")));
  498.             this.btnMax.Name = "btnMax";
  499.             this.btnMax.Size = new System.Drawing.Size(34, 17);
  500.             this.btnMax.TabIndex = 11;
  501.             this.btnMax.Click += new Dare.DN.ControlLib.SysButton.ClickEventHandler(this.btnMax_Click);
  502.             //
  503.             // btnMin
  504.             //
  505.             this.btnMin.BackColor = System.Drawing.Color.Transparent;
  506.             this.btnMin.ButtonImage = ((System.Drawing.Image)(resources.GetObject("btnMin.ButtonImage")));
  507.             this.btnMin.ButtonText = "";
  508.             this.btnMin.Cursor = System.Windows.Forms.Cursors.Arrow;
  509.             this.btnMin.Location = new System.Drawing.Point(25, -1);
  510.             this.btnMin.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("btnMin.MouseClickImage")));
  511.             this.btnMin.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("btnMin.MouseOverImage")));
  512.             this.btnMin.Name = "btnMin";
  513.             this.btnMin.Size = new System.Drawing.Size(34, 17);
  514.             this.btnMin.TabIndex = 12;
  515.             this.btnMin.Click += new Dare.DN.ControlLib.SysButton.ClickEventHandler(this.btnMin_Click);
  516.             //
  517.             // btnClose
  518.             //
  519.             this.btnClose.BackColor = System.Drawing.Color.Transparent;
  520.             this.btnClose.ButtonImage = ((System.Drawing.Image)(resources.GetObject("btnClose.ButtonImage")));
  521.             this.btnClose.ButtonText = "";
  522.             this.btnClose.Cursor = System.Windows.Forms.Cursors.Arrow;
  523.             this.btnClose.Location = new System.Drawing.Point(93, -1);
  524.             this.btnClose.MouseClickImage = ((System.Drawing.Image)(resources.GetObject("btnClose.MouseClickImage")));
  525.             this.btnClose.MouseOverImage = ((System.Drawing.Image)(resources.GetObject("btnClose.MouseOverImage")));
  526.             this.btnClose.Name = "btnClose";
  527.             this.btnClose.Size = new System.Drawing.Size(34, 17);
  528.             this.btnClose.TabIndex = 10;
  529.             this.btnClose.Click += new Dare.DN.ControlLib.SysButton.ClickEventHandler(this.btnClose_Click);
  530.             //
  531.             // topLPnl
  532.             //
  533.             this.topLPnl.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("topLPnl.BackgroundImage")));
  534.             this.topLPnl.Controls.Add(this.pictureBox1);
  535.             this.topLPnl.Controls.Add(this.lblTitle);
  536.             this.topLPnl.Location = new System.Drawing.Point(0, 0);
  537.             this.topLPnl.Name = "topLPnl";
  538.             this.topLPnl.Size = new System.Drawing.Size(190, 23);
  539.             this.topLPnl.TabIndex = 0;
  540.             //
  541.             // pictureBox1
  542.             //
  543.             this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
  544.             this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
  545.             this.pictureBox1.Location = new System.Drawing.Point(6, 4);
  546.             this.pictureBox1.Name = "pictureBox1";
  547.             this.pictureBox1.Size = new System.Drawing.Size(16, 16);
  548.             this.pictureBox1.TabIndex = 1;
  549.             this.pictureBox1.TabStop = false;
  550.             //
  551.             // lblTitle
  552.             //
  553.             this.lblTitle.AutoSize = true;
  554.             this.lblTitle.BackColor = System.Drawing.Color.Transparent;
  555.             this.lblTitle.ForeColor = System.Drawing.Color.White;
  556.             this.lblTitle.Location = new System.Drawing.Point(28, 5);
  557.             this.lblTitle.Name = "lblTitle";
  558.             this.lblTitle.Size = new System.Drawing.Size(53, 12);
  559.             this.lblTitle.TabIndex = 0;
  560.             this.lblTitle.Text = "lblTitle";
  561.             //
  562.             // mediaUC1
  563.             //
  564.             this.mediaUC1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  565.                         | System.Windows.Forms.AnchorStyles.Left)
  566.                         | System.Windows.Forms.AnchorStyles.Right)));
  567.             this.mediaUC1.BackColor = System.Drawing.Color.Transparent;
  568.             this.mediaUC1.Location = new System.Drawing.Point(-4, -3);
  569.             this.mediaUC1.Name = "mediaUC1";
  570.             this.mediaUC1.Size = new System.Drawing.Size(1016, 561);
  571.             this.mediaUC1.TabIndex = 0;
  572.             //
  573.             // programUC1
  574.             //
  575.             this.programUC1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  576.                         | System.Windows.Forms.AnchorStyles.Left)
  577.                         | System.Windows.Forms.AnchorStyles.Right)));
  578.             this.programUC1.BackColor = System.Drawing.Color.Transparent;
  579.             this.programUC1.Location = new System.Drawing.Point(-4, -3);
  580.             this.programUC1.Name = "programUC1";
  581.             this.programUC1.Size = new System.Drawing.Size(1016, 561);
  582.             this.programUC1.TabIndex = 0;
  583.             //
  584.             // terminalUC1
  585.             //
  586.             this.terminalUC1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  587.                         | System.Windows.Forms.AnchorStyles.Left)
  588.                         | System.Windows.Forms.AnchorStyles.Right)));
  589.             this.terminalUC1.BackColor = System.Drawing.Color.Transparent;
  590.             this.terminalUC1.Location = new System.Drawing.Point(-4, -3);
  591.             this.terminalUC1.Name = "terminalUC1";
  592.             this.terminalUC1.Size = new System.Drawing.Size(1016, 558);
  593.             this.terminalUC1.TabIndex = 0;
  594.             //
  595.             // MainFrm
  596.             //
  597.             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
  598.             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  599.             this.BackColor = System.Drawing.SystemColors.ControlText;
  600.             this.ClientSize = new System.Drawing.Size(1016, 716);
  601.             this.Controls.Add(this.mainPnl);
  602.             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
  603.             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  604.             this.Name = "MainFrm";
  605.             this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
  606.             this.Text = "MainFrm";
  607.             this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
  608.             this.Load += new System.EventHandler(this.MainFrm_Load);
  609.             this.mainPnl.ResumeLayout(false);
  610.             this.mainContentPnl.ResumeLayout(false);
  611.             this.panel1.ResumeLayout(false);
  612.             this.panel4.ResumeLayout(false);
  613.             this.panel4.PerformLayout();
  614.             this.panel13.ResumeLayout(false);
  615.  
Code Snippet
  1. partial class MediaUC
  2.     {
  3.         ///<summary>
  4.         /// 必需的设计器变量��?/span>
  5.         ///</summary>
  6.         private System.ComponentModel.IContainer components = null;
  7.  
  8.         ///<summary>
  9.         /// 清理所有正在使用的资源��?/span>
  10.         ///</summary>
  11.         ///<param name="disposing">如果应释放托管资源,��?/span> true;否则为 false��?/span></param>
  12.         protected override void Dispose(bool disposing)
  13.         {
  14.             if (disposing && (components != null))
  15.             {
  16.                 components.Dispose();
  17.             }
  18.             base.Dispose(disposing);
  19.         }
  20.  
  21.         #region 组件设计器生成的代码
  22.  
  23.         ///<summary>
  24.         /// 设计器支持所需的方��?- 不要
  25.         /// 使用代码编辑器修改此方法的内容��?/span>
  26.         ///</summary>
  27.         private void InitializeComponent()
  28.         {
  29.             this.components = new System.ComponentModel.Container();
  30.             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MediaUC));
  31.             this.plMd = new System.Windows.Forms.Panel();
  32.             this.panel18 = new System.Windows.Forms.Panel();
  33.             this.splitContainer1 = new System.Windows.Forms.SplitContainer();
  34.             this.panel20 = new System.Windows.Forms.Panel();
  35.             this.label1 = new System.Windows.Forms.Label();
  36.             this.pictureBox2 = new System.Windows.Forms.PictureBox();
  37.             this.folderTrview = new System.Windows.Forms.TreeView();
  38.             this.pageControl1 = new Dare.DN.ControlLib.PageControl();
  39.             this.mdLView = new System.Windows.Forms.ListView();
  40.             this.chName = new System.Windows.Forms.ColumnHeader();
  41.             this.chType = new System.Windows.Forms.ColumnHeader();
  42.             this.chState = new System.Windows.Forms.ColumnHeader();
  43.             this.chCount = new System.Windows.Forms.ColumnHeader();
  44.             this.chSize = new System.Windows.Forms.ColumnHeader();
  45.             this.chWith = new System.Windows.Forms.ColumnHeader();
  46.             this.chHeight = new System.Windows.Forms.ColumnHeader();
  47.             this.chCreateTime = new System.Windows.Forms.ColumnHeader();
  48.             this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
  49.             this.importMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  50.             this.editerMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  51.             this.deleteMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  52.             this.refreshMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  53.             this.convertMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  54.             this.panel21 = new System.Windows.Forms.Panel();
  55.             this.panel1 = new System.Windows.Forms.Panel();
  56.             this.label3 = new System.Windows.Forms.Label();
  57.             this.btnSearch = new System.Windows.Forms.Label();
  58.             this.txtSearch = new System.Windows.Forms.TextBox();
  59.             this.pictureBox3 = new System.Windows.Forms.PictureBox();
  60.             this.label2 = new System.Windows.Forms.Label();
  61.             this.pictureBox1 = new System.Windows.Forms.PictureBox();
  62.             this.panel5 = new System.Windows.Forms.Panel();
  63.             this.btnConvert = new System.Windows.Forms.Button();
  64.             this.btnRefresh = new System.Windows.Forms.Button();
  65.             this.btnEdit = new System.Windows.Forms.Button();
  66.             this.btnDelete = new System.Windows.Forms.Button();
  67.             this.btnImport = new System.Windows.Forms.Button();
  68.             this.imageList1 = new System.Windows.Forms.ImageList(this.components);
  69.             this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components);
  70.             this.importFdMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  71.             this.plMd.SuspendLayout();
  72.             this.panel18.SuspendLayout();
  73.             this.splitContainer1.Panel1.SuspendLayout();
  74.             this.splitContainer1.Panel2.SuspendLayout();
  75.             this.splitContainer1.SuspendLayout();
  76.             this.panel20.SuspendLayout();
  77.             ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
  78.             this.contextMenuStrip1.SuspendLayout();
  79.             this.panel21.SuspendLayout();
  80.             this.panel1.SuspendLayout();
  81.             ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
  82.             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
  83.             this.panel5.SuspendLayout();
  84.             this.contextMenuStrip2.SuspendLayout();
  85.             this.SuspendLayout();
  86.             //
  87.             // plMd
  88.             //
  89.             this.plMd.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  90.                         | System.Windows.Forms.AnchorStyles.Left)
  91.                         | System.Windows.Forms.AnchorStyles.Right)));
  92.             this.plMd.Controls.Add(this.panel18);
  93.             this.plMd.Controls.Add(this.panel5);
  94.             this.plMd.Location = new System.Drawing.Point(3, 3);
  95.             this.plMd.Margin = new System.Windows.Forms.Padding(0);
  96.             this.plMd.Name = "plMd";
  97.             this.plMd.Size = new System.Drawing.Size(1009, 575);
  98.             this.plMd.TabIndex = 1;
  99.             //
  100.             // panel18
  101.             //
  102.             this.panel18.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  103.                         | System.Windows.Forms.AnchorStyles.Left)
  104.                         | System.Windows.Forms.AnchorStyles.Right)));
  105.             this.panel18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(76)))));
  106.             this.panel18.Controls.Add(this.splitContainer1);
  107.             this.panel18.Location = new System.Drawing.Point(1, 32);
  108.             this.panel18.Name = "panel18";
  109.             this.panel18.Size = new System.Drawing.Size(1007, 543);
  110.             this.panel18.TabIndex = 74;
  111.             //
  112.             // splitContainer1
  113.             //
  114.             this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  115.                         | System.Windows.Forms.AnchorStyles.Left)
  116.                         | System.Windows.Forms.AnchorStyles.Right)));
  117.             this.splitContainer1.Location = new System.Drawing.Point(5, 5);
  118.             this.splitContainer1.Name = "splitContainer1";
  119.             //
  120.             // splitContainer1.Panel1
  121.             //
  122.             this.splitContainer1.Panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(248)))), ((int)(((byte)(253)))));
  123.             this.splitContainer1.Panel1.Controls.Add(this.panel20);
  124.             this.splitContainer1.Panel1.Controls.Add(this.folderTrview);
  125.             //
  126.             // splitContainer1.Panel2
  127.             //
  128.             this.splitContainer1.Panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(248)))), ((int)(((byte)(253)))));
  129.             this.splitContainer1.Panel2.Controls.Add(this.pageControl1);
  130.             this.splitContainer1.Panel2.Controls.Add(this.mdLView);
  131.             this.splitContainer1.Panel2.Controls.Add(this.panel21);
  132.             this.splitContainer1.Size = new System.Drawing.Size(997, 532);
  133.             this.splitContainer1.SplitterDistance = 188;
  134.             this.splitContainer1.SplitterWidth = 6;
  135.             this.splitContainer1.TabIndex = 4;
  136.             //
  137.             // panel20
  138.             //
  139.             this.panel20.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  140.                         | System.Windows.Forms.AnchorStyles.Right)));
  141.             this.panel20.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel20.BackgroundImage")));
  142.             this.panel20.Controls.Add(this.label1);
  143.             this.panel20.Controls.Add(this.pictureBox2);
  144.             this.panel20.Location = new System.Drawing.Point(1, 1);
  145.             this.panel20.Name = "panel20";
  146.             this.panel20.Size = new System.Drawing.Size(187, 29);
  147.             this.panel20.TabIndex = 16;
  148.             //
  149.             // label1
  150.             //
  151.             this.label1.AutoSize = true;
  152.             this.label1.BackColor = System.Drawing.Color.Transparent;
  153.             this.label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  154.             this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(99)))), ((int)(((byte)(162)))));
  155.             this.label1.Location = new System.Drawing.Point(15, 8);
  156.             this.label1.Name = "label1";
  157.             this.label1.Size = new System.Drawing.Size(57, 12);
  158.             this.label1.TabIndex = 3;
  159.             this.label1.Text = "媒体目录";
  160.             //
  161.             // pictureBox2
  162.             //
  163.             this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
  164.             this.pictureBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox2.BackgroundImage")));
  165.             this.pictureBox2.Location = new System.Drawing.Point(8, 10);
  166.             this.pictureBox2.Name = "pictureBox2";
  167.             this.pictureBox2.Size = new System.Drawing.Size(4, 7);
  168.             this.pictureBox2.TabIndex = 2;
  169.             this.pictureBox2.TabStop = false;
  170.             //
  171.             // folderTrview
  172.             //
  173.             this.folderTrview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  174.                         | System.Windows.Forms.AnchorStyles.Left)
  175.                         | System.Windows.Forms.AnchorStyles.Right)));
  176.             this.folderTrview.Location = new System.Drawing.Point(6, 36);
  177.             this.folderTrview.Name = "folderTrview";
  178.             this.folderTrview.Size = new System.Drawing.Size(175, 490);
  179.             this.folderTrview.TabIndex = 15;
  180.             this.folderTrview.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.folderTrview_AfterSelect);
  181.             this.folderTrview.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.folderTrview_NodeMouseClick);
  182.             //
  183.             // pageControl1
  184.             //
  185.             this.pageControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
  186.                         | System.Windows.Forms.AnchorStyles.Right)));
  187.             this.pageControl1.BackColor = System.Drawing.Color.Transparent;
  188.             this.pageControl1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pageControl1.BackgroundImage")));
  189.             this.pageControl1.DisplayStyle = Dare.DN.ControlLib.PageControl.DisplayStyleEnum.Image;
  190.             this.pageControl1.Location = new System.Drawing.Point(8, 500);
  191.             this.pageControl1.Name = "pageControl1";
  192.             this.pageControl1.RecordCount = 30;
  193.             this.pageControl1.Size = new System.Drawing.Size(788, 27);
  194.             this.pageControl1.TabIndex = 15;
  195.             this.pageControl1.TextImageRalitions = Dare.DN.ControlLib.PageControl.TextImageRalitionEnum.ImageInTextFore;
  196.             this.pageControl1.PageIndexChanged += new Dare.DN.ControlLib.PageControl.EventHandler(this.pageControl1_PageIndexChanged);
  197.             //
  198.             // mdLView
  199.             //
  200.             this.mdLView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  201.                         | System.Windows.Forms.AnchorStyles.Left)
  202.                         | System.Windows.Forms.AnchorStyles.Right)));
  203.             this.mdLView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
  204.             this.chName,
  205.             this.chType,
  206.             this.chState,
  207.             this.chCount,
  208.             this.chSize,
  209.             this.chWith,
  210.             this.chHeight,
  211.             this.chCreateTime});
  212.             this.mdLView.ContextMenuStrip = this.contextMenuStrip1;
  213.             this.mdLView.Location = new System.Drawing.Point(8, 36);
  214.             this.mdLView.Name = "mdLView";
  215.             this.mdLView.Size = new System.Drawing.Size(788, 460);
  216.             this.mdLView.TabIndex = 0;
  217.             this.mdLView.UseCompatibleStateImageBehavior = false;
  218.             this.mdLView.View = System.Windows.Forms.View.Details;
  219.             this.mdLView.DoubleClick += new System.EventHandler(this.mdLView_DoubleClick);
  220.             this.mdLView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.MediaLView_ColumnClick);
  221.             //
  222.             // chName
  223.             //
  224.             this.chName.Text = "媒体名称";
  225.             this.chName.Width = 240;
  226.             //
  227.             // chType
  228.             //
  229.             this.chType.Text = "类型";
  230.             //
  231.             // chState
  232.             //
  233.             this.chState.Text = "状��?quot;;
  234.             this.chState.Width = 75;
  235.             //
  236.             // chCount
  237.             //
  238.             this.chCount.Text = "使用次数";
  239.             this.chCount.Width = 80;
  240.             //
  241.             // chSize
  242.             //
  243.             this.chSize.Text = "容量";
  244.             this.chSize.Width = 75;
  245.             //
  246.             // chWith
  247.             //
  248.             this.chWith.Text = "宽度";
  249.             //
  250.             // chHeight
  251.             //
  252.             this.chHeight.Text = "高度";
  253.             //
  254.             // chCreateTime
  255.             //
  256.             this.chCreateTime.Text = "创建日期";
  257.             this.chCreateTime.Width = 130;
  258.             //
  259.             // contextMenuStrip1
  260.             //
  261.             this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
  262.             this.importMenuItem,
  263.             this.editerMenuItem,
  264.             this.deleteMenuItem,
  265.             this.refreshMenuItem,
  266.             this.convertMenuItem});
  267.             this.contextMenuStrip1.Name = "contextMenuStrip1";
  268.             this.contextMenuStrip1.Size = new System.Drawing.Size(119, 114);
  269.             //
  270.             // importMenuItem
  271.             //
  272.             this.importMenuItem.Image = global::DareMediaTray.Properties.Resources.add;
  273.             this.importMenuItem.Name = "importMenuItem";
  274.             this.importMenuItem.Size = new System.Drawing.Size(118, 22);
  275.             this.importMenuItem.Text = "导入";
  276.             this.importMenuItem.Click += new System.EventHandler(this.importMenuItem_Click);
  277.             //
  278.             // editerMenuItem
  279.             //
  280.             this.editerMenuItem.Image = global::DareMediaTray.Properties.Resources.pencil;
  281.             this.editerMenuItem.Name = "editerMenuItem";
  282.             this.editerMenuItem.Size = new System.Drawing.Size(118, 22);
  283.             this.editerMenuItem.Text = "编辑";
  284.             this.editerMenuItem.Click += new System.EventHandler(this.editerMenuItem_Click);
  285.             //
  286.             // deleteMenuItem
  287.             //
  288.             this.deleteMenuItem.Image = global::DareMediaTray.Properties.Resources.delete;
  289.             this.deleteMenuItem.Name = "deleteMenuItem";
  290.             this.deleteMenuItem.Size = new System.Drawing.Size(118, 22);
  291.             this.deleteMenuItem.Text = "删除";
  292.             this.deleteMenuItem.Click += new System.EventHandler(this.deleteMenuItem_Click);
  293.             //
  294.             // refreshMenuItem
  295.             //
  296.             this.refreshMenuItem.Image = global::DareMediaTray.Properties.Resources.arrow_refresh;
  297.             this.refreshMenuItem.Name = "refreshMenuItem";
  298.             this.refreshMenuItem.Size = new System.Drawing.Size(118, 22);
  299.             this.refreshMenuItem.Text = "刷新";
  300.             this.refreshMenuItem.Click += new System.EventHandler(this.refreshMenuItem_Click);
  301.             //
  302.             // convertMenuItem
  303.             //
  304.             this.convertMenuItem.Image = global::DareMediaTray.Properties.Resources.report_edit;
  305.             this.convertMenuItem.Name = "convertMenuItem";
  306.             this.convertMenuItem.Size = new System.Drawing.Size(118, 22);
  307.             this.convertMenuItem.Text = "文档转换";
  308.             this.convertMenuItem.Click += new System.EventHandler(this.convertMenuItem_Click);
  309.             //
  310.             // panel21
  311.             //
  312.             this.panel21.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  313.                         | System.Windows.Forms.AnchorStyles.Right)));
  314.             this.panel21.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel21.BackgroundImage")));
  315.             this.panel21.Controls.Add(this.panel1);
  316.             this.panel21.Controls.Add(this.label2);
  317.             this.panel21.Controls.Add(this.pictureBox1);
  318.             this.panel21.Location = new System.Drawing.Point(1, 1);
  319.             this.panel21.Name = "panel21";
  320.             this.panel21.Size = new System.Drawing.Size(802, 29);
  321.             this.panel21.TabIndex = 14;
  322.             //
  323.             // panel1
  324.             //
  325.             this.panel1.Anchor = System.Windows.Forms.AnchorStyles.Right;
  326.             this.panel1.BackColor = System.Drawing.Color.Transparent;
  327.             this.panel1.Controls.Add(this.label3);
  328.             this.panel1.Controls.Add(this.btnSearch);
  329.             this.panel1.Controls.Add(this.txtSearch);
  330.             this.panel1.Controls.Add(this.pictureBox3);
  331.             this.panel1.Location = new System.Drawing.Point(380, 4);
  332.             this.panel1.Name = "panel1";
  333.             this.panel1.Size = new System.Drawing.Size(415, 21);
  334.             this.panel1.TabIndex = 4;
  335.             //
  336.             // label3
  337.             //
  338.             this.label3.AutoSize = true;
  339.             this.label3.BackColor = System.Drawing.Color.Transparent;
  340.             this.label3.Cursor = System.Windows.Forms.Cursors.Hand;
  341.             this.label3.Location = new System.Drawing.Point(49, 4);
  342.             this.label3.Name = "label3";
  343.             this.label3.Size = new System.Drawing.Size(59, 12);
  344.             this.label3.TabIndex = 6;
  345.             this.label3.Text = "媒体名称:";
  346.             //
  347.             // btnSearch
  348.             //
  349.             this.btnSearch.AutoSize = true;
  350.             this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
  351.             this.btnSearch.Location = new System.Drawing.Point(376, 4);
  352.             this.btnSearch.Name = "btnSearch";
  353.             this.btnSearch.Size = new System.Drawing.Size(35, 12);
  354.             this.btnSearch.TabIndex = 5;
  355.             this.btnSearch.Text = "��?��?quot;;
  356.             this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
  357.             //
  358.             // txtSearch
  359.             //
  360.             this.txtSearch.Location = new System.Drawing.Point(110, 0);
  361.             this.txtSearch.Name = "txtSearch";
  362.             this.txtSearch.Size = new System.Drawing.Size(244, 21);
  363.             this.txtSearch.TabIndex = 0;
  364.             //
  365.             // pictureBox3
  366.             //
  367.             this.pictureBox3.Image = global::DareMediaTray.Properties.Resources.find;
  368.             this.pictureBox3.Location = new System.Drawing.Point(358, 2);
  369.             this.pictureBox3.Name = "pictureBox3";
  370.             this.pictureBox3.Size = new System.Drawing.Size(16, 16);
  371.             this.pictureBox3.TabIndex = 0;
  372.             this.pictureBox3.TabStop = false;
  373.             //
  374.             // label2
  375.             //
  376.             this.label2.AutoSize = true;
  377.             this.label2.BackColor = System.Drawing.Color.Transparent;
  378.             this.label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  379.             this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(99)))), ((int)(((byte)(162)))));
  380.             this.label2.Location = new System.Drawing.Point(15, 8);
  381.             this.label2.Name = "label2";
  382.             this.label2.Size = new System.Drawing.Size(57, 12);
  383.             this.label2.TabIndex = 3;
  384.             this.label2.Text = "媒体列表";
  385.             //
  386.             // pictureBox1
  387.             //
  388.             this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
  389.             this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
  390.             this.pictureBox1.Location = new System.Drawing.Point(8, 10);
  391.             this.pictureBox1.Name = "pictureBox1";
  392.             this.pictureBox1.Size = new System.Drawing.Size(4, 7);
  393.             this.pictureBox1.TabIndex = 2;
  394.             this.pictureBox1.TabStop = false;
  395.             //
  396.             // panel5
  397.             //
  398.             this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  399.                         | System.Windows.Forms.AnchorStyles.Right)));
  400.             this.panel5.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel5.BackgroundImage")));
  401.             this.panel5.Controls.Add(this.btnConvert);
  402.             this.panel5.Controls.Add(this.btnRefresh);
  403.             this.panel5.Controls.Add(this.btnEdit);
  404.             this.panel5.Controls.Add(this.btnDelete);
  405.             this.panel5.Controls.Add(this.btnImport);
  406.             this.panel5.Location = new System.Drawing.Point(0, 0);
  407.             this.panel5.Name = "panel5";
  408.             this.panel5.Size = new System.Drawing.Size(1014, 33);
  409.             this.panel5.TabIndex = 3;
  410.             //
  411.             // btnConvert
  412.             //
  413.             this.btnConvert.Cursor = System.Windows.Forms.Cursors.Hand;
  414.             this.btnConvert.FlatAppearance.BorderSize = 0;
  415.             this.btnConvert.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(142)))), ((int)(((byte)(231)))));
  416.             this.btnConvert.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(95)))), ((int)(((byte)(154)))));
  417.             this.btnConvert.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  418.             this.btnConvert.ForeColor = System.Drawing.Color.Transparent;
  419.             this.btnConvert.Image = global::DareMediaTray.Properties.Resources.report_edit;
  420.             this.btnConvert.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
  421.             this.btnConvert.Location = new System.Drawing.Point(274, 5);
  422.             this.btnConvert.Name = "btnConvert";
  423.             this.btnConvert.Size = new System.Drawing.Size(79, 23);
  424.             this.btnConvert.TabIndex = 4;
  425.             this.btnConvert.Text = "文档转换";
  426.             this.btnConvert.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  427.             this.btnConvert.UseVisualStyleBackColor = true;
  428.             this.btnConvert.Click += new System.EventHandler(this.btnConvert_Click);
  429.             //
  430.             // btnRefresh
  431.             //
  432.             this.btnRefresh.Cursor = System.Windows.Forms.Cursors.Hand;
  433.             this.btnRefresh.FlatAppearance.BorderSize = 0;
  434.             this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(142)))), ((int)(((byte)(231)))));
  435.             this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(95)))), ((int)(((byte)(154)))));
  436.             this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  437.             this.btnRefresh.ForeColor = System.Drawing.Color.Transparent;
  438.             this.btnRefresh.Image = global::DareMediaTray.Properties.Resources.arrow_refresh;
  439.             this.btnRefresh.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
  440.             this.btnRefresh.Location = new System.Drawing.Point(208, 5);
  441.             this.btnRefresh.Name = "btnRefresh";
  442.             this.btnRefresh.Size = new System.Drawing.Size(60, 23);
  443.             this.btnRefresh.TabIndex = 3;
  444.             this.btnRefresh.Text = "��?��?quot;;
  445.             this.btnRefresh.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  446.             this.btnRefresh.UseVisualStyleBackColor = true;
  447.             this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
  448.             //
  449.             // btnEdit
  450.             //
  451.             this.btnEdit.Cursor = System.Windows.Forms.Cursors.Hand;
  452.             this.btnEdit.FlatAppearance.BorderSize = 0;
  453.             this.btnEdit.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(142)))), ((int)(((byte)(231)))));
  454.             this.btnEdit.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(95)))), ((int)(((byte)(154)))));
  455.             this.btnEdit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  456.             this.btnEdit.ForeColor = System.Drawing.Color.Transparent;
  457.             this.btnEdit.Image = global::DareMediaTray.Properties.Resources.pencil;
  458.             this.btnEdit.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
  459.             this.btnEdit.Location = new System.Drawing.Point(142, 5);
  460.             this.btnEdit.Name = "btnEdit";
  461.             this.btnEdit.Size = new System.Drawing.Size(60, 23);
  462.             this.btnEdit.TabIndex = 2;
  463.             this.btnEdit.Text = "��?��?quot;;
  464.             this.btnEdit.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  465.             this.btnEdit.UseVisualStyleBackColor = true;
  466.             this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
  467.             //
  468.             // btnDelete
  469.             //
  470.             this.btnDelete.Cursor = System.Windows.Forms.Cursors.Hand;
  471.             this.btnDelete.FlatAppearance.BorderSize = 0;
  472.             this.btnDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(142)))), ((int)(((byte)(231)))));
  473.             this.btnDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(95)))), ((int)(((byte)(154)))));
  474.             this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  475.             this.btnDelete.ForeColor = System.Drawing.Color.Transparent;
  476.             this.btnDelete.Image = global::DareMediaTray.Properties.Resources.delete;
  477.             this.btnDelete.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
  478.             this.btnDelete.Location = new System.Drawing.Point(76, 5);
  479.             this.btnDelete.Name = "btnDelete";
  480.             this.btnDelete.Size = new System.Drawing.Size(60, 23);
  481.             this.btnDelete.TabIndex = 1;
  482.             this.btnDelete.Text = "��?��?quot;;
  483.             this.btnDelete.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  484.             this.btnDelete.UseVisualStyleBackColor = true;
  485.             this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
  486.             //
  487.             // btnImport
  488.             //
  489.             this.btnImport.Cursor = System.Windows.Forms.Cursors.Hand;
  490.             this.btnImport.FlatAppearance.BorderSize = 0;
  491.             this.btnImport.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(142)))), ((int)(((byte)(231)))));
  492.             this.btnImport.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(95)))), ((int)(((byte)(154)))));
  493.             this.btnImport.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  494.             this.btnImport.ForeColor = System.Drawing.Color.Transparent;
  495.             this.btnImport.Image = global::DareMediaTray.Properties.Resources.add;
  496.             this.btnImport.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
  497.             this.btnImport.Location = new System.Drawing.Point(10, 5);
  498.             this.btnImport.Name = "btnImport";
  499.             this.btnImport.Size = new System.Drawing.Size(60, 23);
  500.             this.btnImport.TabIndex = 0;
  501.             this.btnImport.Text = "��?��?quot;;
  502.             this.btnImport.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  503.             this.btnImport.UseVisualStyleBackColor = true;
  504.             this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
  505.             //
  506.             // imageList1
  507.             //
  508.             this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
  509.             this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
  510.             this.imageList1.Images.SetKeyName(0, "folder.gif");
  511.             this.imageList1.Images.SetKeyName(1, "folder_open.gif");
  512.             this.imageList1.Images.SetKeyName(2, "folders.gif");
  513.             //
  514.             // contextMenuStrip2
  515.             //
  516.             this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
  517.             this.importFdMenuItem});
  518.             this.contextMenuStrip2.Name = "contextMenuStrip1";
  519.             this.contextMenuStrip2.Size = new System.Drawing.Size(95, 26);
  520.             //
  521.             // importFdMenuItem
  522.             //
  523.             this.importFdMenuItem.Image = global::DareMediaTray.Properties.Resources.add;
  524.             this.importFdMenuItem.Name = "importFdMenuItem";
  525.             this.importFdMenuItem.Size = new System.Drawing.Size(94, 22);
  526.             this.importFdMenuItem.Text = "导入";
  527.             this.importFdMenuItem.Click += new System.EventHandler(this.importFdMenuItem_Click);
  528.             //
  529.             // MediaUC
  530.             //
  531.             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
  532.             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  533.             this.BackColor = System.Drawing.Color.Transparent;
  534.             this.Controls.Add(this.plMd);
  535.             this.Name = "MediaUC";
  536.             this.Size = new System.Drawing.Size(1015, 581);
  537.             this.plMd.ResumeLayout(false);
  538.             this.panel18.ResumeLayout(false);
  539.             this.splitContainer1.Panel1.ResumeLayout(false);
  540.             this.splitContainer1.Panel2.ResumeLayout(false);
  541.             this.splitContainer1.ResumeLayout(false);

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

Code Snippet
  1. public partial class ImageButton : UserControl
  2.     {
  3.         private Image p1;
  4.         private Image p2;
  5.         private Image p3;
  6.  
  7.         public delegate void ClickEventHandler(object sender, EventArgs e);
  8.         public new event ClickEventHandler Click;
  9.  
  10.         public ImageButton()
  11.         {
  12.             InitializeComponent();
  13.         }
  14.  
  15.         [Category("重要属��?quot;)]
  16.         [Description("按钮默认显示的图��?quot;)]
  17.         public Image ButtonImage
  18.         {
  19.             get
  20.             {
  21.                 return this.pbImage.Image;
  22.             }
  23.             set
  24.             {
  25.                 this.pbImage.Image = value;
  26.                 this.p1 = value;
  27.             }
  28.         }
  29.         [Category("重要属��?quot;)]
  30.         [Description("按钮中要显示的文��?quot;)]
  31.         public string ButtonText
  32.         {
  33.             get
  34.             {
  35.                 return this.lblTemp.Text;
  36.             }
  37.             set
  38.             {
  39.                 this.lblTemp.Text = value;
  40.             }
  41.         }
  42.  
  43.         [Category("重要属��?quot;)]
  44.         [Description("单击按钮时候显示的图片")]
  45.         public Image MouseClickImage
  46.         {
  47.             get
  48.             {
  49.                 return this.p3;
  50.             }
  51.             set
  52.             {
  53.                 this.p3 = value;
  54.             }
  55.         }
  56.  
  57.         [Category("重要属��?quot;)]
  58.         [Description("鼠标移动到按钮上时显示的图片")]
  59.         public Image MouseOverImage
  60.         {
  61.             get
  62.             {
  63.                 return this.p2;
  64.             }
  65.             set
  66.             {
  67.                 this.p2 = value;
  68.             }
  69.         }
  70.  
  71.         private void ImageButton_Resize(object sender, EventArgs e)
  72.         {
  73.             this.lblTemp.Left = (int)Math.Round((double)((((double)this.pbImage.Width) / 2.0) - (((double)this.lblTemp.Width) / 2.0)));
  74.             this.lblTemp.Top = (int)Math.Round((double)(((double)this.pbImage.Height) / 2.0))+15;
  75.         }
  76.  
  77.         private void ImageButton_Load(object sender, EventArgs e)
  78.         {
  79.             this.lblTemp.Parent = this.pbImage;
  80.             this.lblTemp.Width = this.pbImage.Width;
  81.             this.pbImage.Image = this.p1;
  82.             this.lblTemp.Left = (int)Math.Round((double)((((double)this.pbImage.Width) / 2.0) - (((double)this.lblTemp.Width) / 2.0)));
  83.             this.lblTemp.Top = (int)Math.Round((double)(((double)this.pbImage.Height) / 2.0)) + 15;
  84.         }
  85.  
  86.         private void lblTemp_Click(object sender, EventArgs e)
  87.         {
  88.             ClickEventHandler clickEvent = this.Click;
  89.             if (clickEvent != null)
  90.             {
  91.                 clickEvent(this, e);
  92.             }
  93.         }
  94.  
  95.         private void lblTemp_MouseDown(object sender, MouseEventArgs e)
  96.         {
  97.             this.Cursor = Cursors.Hand;
  98.             this.pbImage.Image = this.p3;
  99.         }
  100.  
  101.         private void lblTemp_MouseEnter(object sender, EventArgs e)
  102.         {
  103.             this.Cursor = Cursors.Hand;
  104.             this.pbImage.Image = this.p2;
  105.         }
  106.  
  107.         private void lblTemp_MouseHover(object sender, EventArgs e)
  108.         {
  109.             this.Cursor = Cursors.Hand;
  110.             this.pbImage.Image = this.p2;
  111.         }
  112.  
  113.         private void lblTemp_MouseLeave(object sender, EventArgs e)
  114.         {
  115.             this.Cursor = Cursors.Hand;
  116.             this.pbImage.Image = this.p1;
  117.         }
  118.  
  119.         private void lblTemp_MouseUp(object sender, MouseEventArgs e)
  120.         {
  121.             this.Cursor = Cursors.Hand;
  122.             this.pbImage.Image = this.p1;
  123.         }
  124.  
  125.         private void lblTemp_TextChanged(object sender, EventArgs e)
  126.         {
  127.             this.lblTemp.Parent = this.pbImage;
  128.             this.lblTemp.Width = this.pbImage.Width;
  129.             this.lblTemp.Left = (int)Math.Round((double)((((double)this.pbImage.Width) / 2.0) - (((double)this.lblTemp.Width) / 2.0)));
  130.             this.lblTemp.Top = (int)Math.Round((double)((((double)this.pbImage.Height) / 2.0) - (((double)this.lblTemp.Height) / 2.0)));
  131.         }
  132.  
  133.         private void pbImage_BackgroundImageChanged(object sender, EventArgs e)
  134.         {
  135.             this.pbImage.Refresh();
  136.         }
  137.  
  138.         private void pbImage_Click(object sender, EventArgs e)
  139.         {
  140.             ClickEventHandler clickEvent = this.Click;
  141.             if (clickEvent != null)
  142.             {
  143.                 clickEvent(this, e);
  144.             }
  145.         }
  146.  
  147.         private void pbImage_MouseDown(object sender, MouseEventArgs e)
  148.         {
  149.             this.Cursor = Cursors.Hand;
  150.             this.pbImage.Image = this.p3;
  151.         }
  152.  
  153.         private void pbImage_MouseEnter(object sender, EventArgs e)
  154.         {
  155.             this.Cursor = Cursors.Hand;
  156.             this.pbImage.Image = this.p2;
  157.         }
  158.  
  159.         private void pbImage_MouseHover(object sender, EventArgs e)
  160.         {
  161.             this.Cursor = Cursors.Hand;
  162.             this.pbImage.Image = this.p2;
  163.         }
  164.  
  165.         private void pbImage_MouseLeave(object sender, EventArgs e)
  166.         {
  167.             this.Cursor = Cursors

 

Code Snippet
  1. private void imgBtnMedia_Click(object sender, EventArgs e)
  2.         {
  3.             this.tabControl1.SelectTab("tabPage1");
  4.             this.imgBtnMedia.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnMedia.MouseOverImage")));
  5.             this.imgBtnSysconfig.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnSysconfig.ButtonImage")));
  6.             this.imgBtnExt.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnExt.ButtonImage")));
  7.             this.imgBtnAbout.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnAbout.ButtonImage")));
  8.             this.imgBtnTerminal.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnTerminal.ButtonImage")));
  9.             this.imgBtnProgram.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnProgram.ButtonImage")));
  10.         }
  11.  
  12.         private void imgBtnProgram_Click(object sender, EventArgs e)
  13.         {
  14.             this.tabControl1.SelectTab("tabPage2");
  15.             this.imgBtnProgram.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnProgram.MouseOverImage")));
  16.             this.imgBtnSysconfig.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnSysconfig.ButtonImage")));
  17.             this.imgBtnExt.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnExt.ButtonImage")));
  18.             this.imgBtnAbout.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnAbout.ButtonImage")));
  19.             this.imgBtnTerminal.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnTerminal.ButtonImage")));
  20.             this.imgBtnMedia.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnMedia.ButtonImage")));
  21.         }
  22.  
  23.         private void imgBtnTerminal_Click(object sender, EventArgs e)
  24.         {
  25.             this.tabControl1.SelectTab("tabPage3");
  26.             this.imgBtnTerminal.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnTerminal.MouseOverImage")));
  27.             this.imgBtnSysconfig.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnSysconfig.ButtonImage")));
  28.             this.imgBtnExt.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnExt.ButtonImage")));
  29.             this.imgBtnAbout.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnAbout.ButtonImage")));
  30.             this.imgBtnProgram.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnProgram.ButtonImage")));
  31.             this.imgBtnMedia.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnMedia.ButtonImage")));
  32.         }
  33.  
  34.         private void MainFrm_Load(object sender, EventArgs e)
  35.         {
  36.             this.lblVersion.Text = "当前版本:V " + AssemblyUtil.GetAssemblyVersion().ToString();
  37.         }
  38.  
  39.         private void imgBtnAbout_Click(object sender, EventArgs e)
  40.         {
  41.             this.imgBtnAbout.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnAbout.MouseOverImage")));
  42.             this.imgBtnSysconfig.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnSysconfig.ButtonImage")));
  43.             this.imgBtnExt.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnExt.ButtonImage")));
  44.             this.imgBtnTerminal.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnTerminal.ButtonImage")));
  45.             this.imgBtnProgram.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnProgram.ButtonImage")));
  46.             this.imgBtnMedia.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnMedia.ButtonImage")));
  47.  
  48.             AboutFrm frm = new AboutFrm();
  49.             frm.ShowDialog();
  50.         }
  51.  
  52.         private void imgBtnExt_Click(object sender, EventArgs e)
  53.         {
  54.             this.imgBtnExt.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnExt.MouseOverImage")));
  55.             this.imgBtnAbout.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnAbout.ButtonImage")));
  56.             this.imgBtnSysconfig.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnSysconfig.ButtonImage")));
  57.             this.imgBtnTerminal.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnTerminal.ButtonImage")));
  58.             this.imgBtnProgram.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnProgram.ButtonImage")));
  59.             this.imgBtnMedia.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnMedia.ButtonImage")));
  60.             if (MessageBox.Show("确定退出系统吗��?quot;, "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.OK)
  61.             {
  62.                 //Program.KillHttpd();
  63.                 Process.GetCurrentProcess().Kill();
  64.             }
  65.         }
  66.  
  67.         protected override void OnClosed(EventArgs e)
  68.         {
  69.             //Program.KillHttpd();
  70.             Process.GetCurrentProcess().Kill();
  71.             base.OnClosed(e);
  72.         }
  73.  
  74.         private void imgBtnSysconfig_Click(object sender, EventArgs e)
  75.         {
  76.             this.imgBtnSysconfig.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnSysconfig.MouseOverImage")));
  77.             this.imgBtnAbout.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnAbout.ButtonImage")));
  78.             this.imgBtnExt.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnExt.ButtonImage")));
  79.             this.imgBtnTerminal.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnTerminal.ButtonImage")));
  80.             this.imgBtnProgram.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnProgram.ButtonImage")));
  81.             this.imgBtnMedia.ButtonImage = ((System.Drawing.Image)(new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)).GetObject("imgBtnMedia.ButtonImage")));
  82.             SysconfigFrm frm = new SysconfigFrm();
  83.             frm.ShowDialog();
  84.         }
  85.  
  86.         private void btnMin_Click(object sender, EventArgs e)
  87.         {
  88.             this.WindowState = FormWindowState.Minimized;
  89.         }
  90.  
  91.         private void btnMax_Click(object sender, EventArgs e)
  92.         {
  93.             if (isNormal)
  94.             {
  95.                 isNormal = false;
  96.                 this.WindowState = FormWindowState.Maximized;
  97.             }

你可能感兴趣的:(WinForm)