ToolUserContrtol.cs 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using PaintDotNet.CustomControl;
  11. namespace PaintDotNet.GeneralAnalysis.CustomInterface
  12. {
  13. public class ToolUserContrtol : BaseUserControl
  14. {
  15. public Button button2;
  16. public Button button3;
  17. public Button button4;
  18. public Button button5;
  19. public Button button6;
  20. public Button button7;
  21. public Button button8;
  22. public Button button1;
  23. public ToolTip toolTip1;
  24. public ToolUserContrtol()
  25. {
  26. InitializeComponent();
  27. InitializeToolTip();
  28. }
  29. private void InitializeToolTip()
  30. {
  31. this.toolTip1 = new ToolTip();
  32. this.toolTip1.SetToolTip(this.button1, PdnResources.GetString("Menu.Edit.ZoomIn.Text"));
  33. this.toolTip1.SetToolTip(this.button2, PdnResources.GetString("CommonAction.ZoomOut"));
  34. this.toolTip1.SetToolTip(this.button3, PdnResources.GetString("Menu.Pointertothemodel.text"));
  35. this.toolTip1.SetToolTip(this.button4, PdnResources.GetString("Menu.pingyi.Text"));
  36. this.toolTip1.SetToolTip(this.button5, PdnResources.GetString("Menu.Edit.ZoomToWindow.Text"));
  37. this.toolTip1.SetToolTip(this.button6, PdnResources.GetString("Menu.yuanshidaxiao.Text"));
  38. this.toolTip1.SetToolTip(this.button7, PdnResources.GetString("Menu.shun.Text"));
  39. this.toolTip1.SetToolTip(this.button8, PdnResources.GetString("Menu.nishizhen.Text"));
  40. this.toolTip1.ShowAlways = true;
  41. }
  42. private void InitializeComponent()
  43. {
  44. this.button1 = new System.Windows.Forms.Button();
  45. this.button2 = new System.Windows.Forms.Button();
  46. this.button3 = new System.Windows.Forms.Button();
  47. this.button4 = new System.Windows.Forms.Button();
  48. this.button5 = new System.Windows.Forms.Button();
  49. this.button6 = new System.Windows.Forms.Button();
  50. this.button7 = new System.Windows.Forms.Button();
  51. this.button8 = new System.Windows.Forms.Button();
  52. this.SuspendLayout();
  53. //
  54. // button1
  55. //
  56. this.button1.Location = new System.Drawing.Point(4, 9);
  57. this.button1.Name = "button1";
  58. this.button1.Size = new System.Drawing.Size(27, 23);
  59. this.button1.TabIndex = 0;
  60. //this.button1.Text = "大";
  61. this.button1.UseVisualStyleBackColor = true;
  62. this.button1.FlatStyle = FlatStyle.Flat;
  63. this.button1.FlatAppearance.BorderSize = 0;
  64. this.button1.BackgroundImageLayout = ImageLayout.Center;
  65. this.button1.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasLargeIcon.png").Reference;
  66. //
  67. // button2
  68. //
  69. this.button2.Location = new System.Drawing.Point(40, 9);
  70. this.button2.Name = "button2";
  71. this.button2.Size = new System.Drawing.Size(27, 23);
  72. this.button2.TabIndex = 1;
  73. //this.button2.Text = "小";
  74. this.button2.UseVisualStyleBackColor = true;
  75. this.button2.FlatStyle = FlatStyle.Flat;
  76. this.button2.FlatAppearance.BorderSize = 0;
  77. this.button2.BackgroundImageLayout = ImageLayout.Center;
  78. this.button2.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasSmallIcon.png").Reference;
  79. //
  80. // button3
  81. //
  82. this.button3.Location = new System.Drawing.Point(76, 9);
  83. this.button3.Name = "button3";
  84. this.button3.Size = new System.Drawing.Size(27, 23);
  85. this.button3.TabIndex = 2;
  86. //this.button3.Text = "p";
  87. this.button3.UseVisualStyleBackColor = true;
  88. this.button3.FlatStyle = FlatStyle.Flat;
  89. this.button3.FlatAppearance.BorderSize = 0;
  90. this.button3.BackgroundImageLayout = ImageLayout.Center;
  91. this.button3.BackgroundImage = PdnResources.GetImageResource("Icons.MenuChoiseActionIcon.png").Reference;
  92. //
  93. // button4
  94. //
  95. this.button4.Location = new System.Drawing.Point(112, 9);
  96. this.button4.Name = "button4";
  97. this.button4.Size = new System.Drawing.Size(27, 23);
  98. this.button4.TabIndex = 3;
  99. //this.button4.Text = "移";
  100. this.button4.UseVisualStyleBackColor = true;
  101. this.button4.FlatStyle = FlatStyle.Flat;
  102. this.button4.FlatAppearance.BorderSize = 0;
  103. this.button4.BackgroundImageLayout = ImageLayout.Center;
  104. this.button4.BackgroundImage = PdnResources.GetImageResource("Icons.PanToolIcon.png").Reference;
  105. //
  106. // button5
  107. //
  108. this.button5.Location = new System.Drawing.Point(148, 9);
  109. this.button5.Name = "button5";
  110. this.button5.Size = new System.Drawing.Size(27, 23);
  111. this.button5.TabIndex = 4;
  112. //this.button5.Text = "合";
  113. this.button5.UseVisualStyleBackColor = true;
  114. this.button5.FlatStyle = FlatStyle.Flat;
  115. this.button5.FlatAppearance.BorderSize = 0;
  116. this.button5.BackgroundImageLayout = ImageLayout.Center;
  117. this.button5.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasMergeIcon.png").Reference;
  118. //
  119. // button6
  120. //
  121. this.button6.Location = new System.Drawing.Point(184, 9);
  122. this.button6.Name = "button6";
  123. this.button6.Size = new System.Drawing.Size(27, 23);
  124. this.button6.TabIndex = 5;
  125. //this.button6.Text = "原";
  126. this.button6.UseVisualStyleBackColor = true;
  127. this.button6.FlatStyle = FlatStyle.Flat;
  128. this.button6.FlatAppearance.BorderSize = 0;
  129. this.button6.BackgroundImageLayout = ImageLayout.Center;
  130. this.button6.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasOriginIcon.png").Reference;
  131. //
  132. // button7
  133. //
  134. this.button7.Location = new System.Drawing.Point(220, 9);
  135. this.button7.Name = "button7";
  136. this.button7.Size = new System.Drawing.Size(27, 23);
  137. this.button7.TabIndex = 6;
  138. //this.button7.Text = "逆";
  139. this.button7.UseVisualStyleBackColor = true;
  140. this.button7.FlatStyle = FlatStyle.Flat;
  141. this.button7.FlatAppearance.BorderSize = 0;
  142. this.button7.BackgroundImageLayout = ImageLayout.Center;
  143. this.button7.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasClockwiseIcon.png").Reference;
  144. //
  145. // button8
  146. //
  147. this.button8.Location = new System.Drawing.Point(256, 9);
  148. this.button8.Name = "button8";
  149. this.button8.Size = new System.Drawing.Size(27, 23);
  150. this.button8.TabIndex = 7;
  151. //this.button8.Text = "顺";
  152. this.button8.UseVisualStyleBackColor = true;
  153. this.button8.FlatStyle = FlatStyle.Flat;
  154. this.button8.FlatAppearance.BorderSize = 0;
  155. this.button8.BackgroundImageLayout = ImageLayout.Center;
  156. this.button8.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasCounterclockwiseIcon.png").Reference;
  157. //
  158. // ToolUserContrtol
  159. //
  160. this.Controls.Add(this.button8);
  161. this.Controls.Add(this.button7);
  162. this.Controls.Add(this.button6);
  163. this.Controls.Add(this.button5);
  164. this.Controls.Add(this.button4);
  165. this.Controls.Add(this.button3);
  166. this.Controls.Add(this.button2);
  167. this.Controls.Add(this.button1);
  168. this.Name = "ToolUserContrtol";
  169. this.Size = new System.Drawing.Size(287, 41);
  170. this.ResumeLayout(false);
  171. }
  172. }
  173. }