一、同一资源:

二、先上软件界面:

(1)wpf界面:

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

(2)winform界面

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

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

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

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))+;
} 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)) + ;
} 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或邮箱方便我发送源码!

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

  1. DevExpress控件库 开发使用经验总结2 DevExpress汉化之WinForm开发模式汉化

    2015-01-24 DevExpress控件库默认安装后,使用的本地资源为英文.Developer Express .NET产品都有本地化资源,比如按钮属性,控件属性描述,菜单项,确认和错误的信息等 ...

  2. RDIFramework.NETV2.9版本 Web新增至14套皮肤风格+三套界面组合(共42套皮肤组合)

    客户的心声是最重要的,RDIFramework.NET V2.9版本不仅对WinForm版做了大的调整,Web版也彻彻底底的底翻上的优化了一篇,不仅增加了很多的新功能.新特色,用户最期望的界面风格也进 ...

  3. Android动态换肤(一、应用内置多套皮肤)

    动态换肤在很多android应用中都有使用,用户根据自己的喜好设置皮肤主题,可以增强用户使用应用的舒适度. Android换肤可以分为很多种,它们从使用方式,用户体验以及项目框架设计上体现了明显的差异 ...

  4. winform项目中开发的一套UI控件库

    https://github.com/houyhea/winform-control-lib winform-control-lib 曾经在一个winform项目中开发的一套UI控件库 类图:  效果 ...

  5. css-theme 通过一套源码生成一份包含多套皮肤配置的样式文件

    css-theme 通过单一css文件生成多套主题,并合并入一个css文件中 特性 只加载一个css,通过切换rootClass瞬间切换主题 体积压缩,将多套css合并,去除冗余代码,避免文件体积膨胀 ...

  6. SNF开发平台WinForm之二-开发-单表表单管理页面-SNF快速开发平台3.3-Spring.Net.Framework

    2.1运行效果: 2.2开发实现: 2.2.1 这个开发与第一个开发操作步骤是一致的,不同之处就是在生成完代码之后,留下如下圈红程序,其它删除. 第一个开发地址:开发-单表表格编辑管理页面 http: ...

  7. WinForm开发-界面控件到实体,实体到界面控件自动绑定

    在WinForm开发中,我们是不是为绑定界面控件的数据而每个控件每个控件的赋值?在保存修改时是不是也是每个控件每个控件的赋值到实体中?字段一多,那简直就是噩梦.有没有像Web中那样方便的方法直接就自动 ...

  8. .net开发笔记(十三) Winform常用开发模式第一篇

    上一篇博客最后我提到“异步编程模型”(APM),之后本来打算整理一下这方面的材料然后总结一下写篇文章与诸位分享,后来在整理的过程中不断的延伸不断地扩展,发现完全偏离了“异步编程”这个概念,前前后后所有 ...

  9. Winform常用开发模式第一篇

    Winform常用开发模式第一篇 上一篇博客最后我提到“异步编程模型”(APM),之后本来打算整理一下这方面的材料然后总结一下写篇文章与诸位分享,后来在整理的过程中不断的延伸不断地扩展,发现完全偏离了 ...

随机推荐

  1. hdu - 3952 Fruit Ninja(简单几何)

    思路来自于:http://www.cnblogs.com/wuyiqi/archive/2011/11/06/2238530.html 枚举两个多边形的两个点组成的直线,判断能与几个多边形相交 因为最 ...

  2. SQL Server优化技巧之SQL Server中的"MapReduce"

    日常的OLTP环境中,有时会涉及到一些统计方面的SQL语句,这些语句可能消耗巨大,进而影响整体运行环境,这里我为大家介绍如何利用SQL Server中的”类MapReduce”方式,在特定的统计情形中 ...

  3. log_reuse_wait_desc为REPLICATION,日志暴大,无法收缩

    早上检查数据发现,有一台数据的硬盘空间只剩下几MB.习惯性检查日志文件,发现日志文件居然暴增到了350多GB 首先备份日志,再收缩-------无变化.(实际上日志备份每1小时1挡,正常在跑.) -- ...

  4. Android 5.x特性概览二

    上文 ,对Android 5.X特性,主要是Material Design的特性进行了介绍,这篇文章我们来使用Material Design主题. Material Design 现在有三种默认的主题 ...

  5. 腾讯DBA官方博客开通了,欢迎交流

    腾讯DBA官方博客开通了,欢迎交流哈..麻烦给放到首页一下     http://tencentdba.com   腾讯互娱游戏DBA团队一直致力于为游戏提供稳定.高效的DB运营服务,这是我们团队的使 ...

  6. 个性二维码开源专题<介绍篇>

    由C#编写的个性二维码底层,已应用到 码晒客/疯狂创意二维码等项目上,并获得多项软件著作专利. 疯狂创意二维码 疯狂创意二维码是可用于生成风格独特的个性化二维码生成器,用户可以将目标信息输入到二维码生 ...

  7. Windows7上搭建Cocos2d-x 3.1.1开发环境

    前言 现在,越来越多的公司采用Cocos2d-x 3.0来开发游戏了,但是现在这样的文章并不多,所以打算写一系列来帮助初学者快速掌握Cocos2d-x 3.0.首先就从开发环境的大家说起吧. 开发工具 ...

  8. Linux下通过NFS共享文件夹

    测试环境:CentOS 6.7 服务端 # yum -y install nfs-utils rpcbind # 开启服务 service nfs start service rpcbind star ...

  9. [MFC] 高仿Flappy bird 桌面版

    这是今年年初做的东西,一直没有时间整理,现在拿出来分享下~ 目录 开发背景 开发语言及运行环境 效果展示 游戏框架说明 游戏状态及逻辑说明 经典算法说明 重量级问题解决 开发感想 一.开发背景: fl ...

  10. [stm32][ucos] 1、基于ucos操作系统的LED闪烁、串口通信简单例程

    * 内容简述: 本例程操作系统采用ucos2.86a版本, 建立了5个任务            任务名                                             优先级 ...