PlayUserContrtol.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. namespace PaintDotNet.GeneralAnalysis.CustomInterface
  11. {
  12. public class PlayUserContrtol : UserControl
  13. {
  14. public Button button7;
  15. public Button button8;
  16. public Button button3;
  17. private Label label1;
  18. public Button button1;
  19. public PlayUserContrtol()
  20. {
  21. InitializeComponent();
  22. InitializeLanguageText();
  23. }
  24. public void SetCollectionText(int current, int count)
  25. {
  26. this.label1.Text = PdnResources.GetString("Menu.Thefirst.Text") + current + PdnResources.GetString("Menu.pictrrrre.Text")+ ","+ PdnResources.GetString("Menu.Atotalof.Text") + count + PdnResources.GetString("Menu.pictrrrre.Text");
  27. }
  28. private void InitializeLanguageText()
  29. {
  30. this.label1.Text = PdnResources.GetString("Menu.Thereare10picturesintotal.Text");
  31. }
  32. private void InitializeComponent()
  33. {
  34. this.button1 = new System.Windows.Forms.Button();
  35. this.button7 = new System.Windows.Forms.Button();
  36. this.button8 = new System.Windows.Forms.Button();
  37. this.button3 = new System.Windows.Forms.Button();
  38. this.label1 = new System.Windows.Forms.Label();
  39. this.SuspendLayout();
  40. //
  41. // button1
  42. //
  43. this.button1.Location = new System.Drawing.Point(4, 9);
  44. this.button1.Name = "button1";
  45. this.button1.Size = new System.Drawing.Size(37, 23);
  46. this.button1.TabIndex = 0;
  47. //this.button1.Text = "第一";
  48. this.button1.UseVisualStyleBackColor = true;
  49. this.button1.FlatStyle = FlatStyle.Flat;
  50. this.button1.FlatAppearance.BorderSize = 0;
  51. this.button1.BackgroundImageLayout = ImageLayout.Center;
  52. this.button1.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasFirstIcon.png").Reference;
  53. //
  54. // button7
  55. //
  56. this.button7.Location = new System.Drawing.Point(199, 9);
  57. this.button7.Name = "button7";
  58. this.button7.Size = new System.Drawing.Size(37, 23);
  59. this.button7.TabIndex = 6;
  60. //this.button7.Text = "下一";
  61. this.button7.UseVisualStyleBackColor = true;
  62. this.button7.FlatStyle = FlatStyle.Flat;
  63. this.button7.FlatAppearance.BorderSize = 0;
  64. this.button7.BackgroundImageLayout = ImageLayout.Center;
  65. this.button7.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasNextIcon.png").Reference;
  66. //
  67. // button8
  68. //
  69. this.button8.Location = new System.Drawing.Point(242, 9);
  70. this.button8.Name = "button8";
  71. this.button8.Size = new System.Drawing.Size(41, 23);
  72. this.button8.TabIndex = 7;
  73. //this.button8.Text = "最后";
  74. this.button8.UseVisualStyleBackColor = true;
  75. this.button8.FlatStyle = FlatStyle.Flat;
  76. this.button8.FlatAppearance.BorderSize = 0;
  77. this.button8.BackgroundImageLayout = ImageLayout.Center;
  78. this.button8.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasLastIcon.png").Reference;
  79. //
  80. // button3
  81. //
  82. this.button3.Location = new System.Drawing.Point(47, 9);
  83. this.button3.Name = "button3";
  84. this.button3.Size = new System.Drawing.Size(37, 23);
  85. this.button3.TabIndex = 2;
  86. //this.button3.Text = "上一";
  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.MenuAtlasPreviousIcon.png").Reference;
  92. //
  93. // label1
  94. //
  95. this.label1.AutoSize = true;
  96. this.label1.Location = new System.Drawing.Point(101, 14);
  97. this.label1.Name = "label1";
  98. this.label1.Size = new System.Drawing.Size(83, 12);
  99. this.label1.TabIndex = 8;
  100. this.label1.Text = "第1幅,共10幅";
  101. //
  102. // PlayUserContrtol
  103. //
  104. this.Controls.Add(this.label1);
  105. this.Controls.Add(this.button8);
  106. this.Controls.Add(this.button7);
  107. this.Controls.Add(this.button3);
  108. this.Controls.Add(this.button1);
  109. this.Name = "PlayUserContrtol";
  110. this.Size = new System.Drawing.Size(287, 41);
  111. this.ResumeLayout(false);
  112. this.PerformLayout();
  113. }
  114. }
  115. }