123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Drawing;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace PaintDotNet.GeneralAnalysis.CustomInterface
- {
- public class PlayUserContrtol : UserControl
- {
- public Button button7;
- public Button button8;
- public Button button3;
- private Label label1;
- public Button button1;
- public PlayUserContrtol()
- {
- InitializeComponent();
- InitializeLanguageText();
- }
- public void SetCollectionText(int current, int count)
- {
- 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");
- }
-
- private void InitializeLanguageText()
- {
- this.label1.Text = PdnResources.GetString("Menu.Thereare10picturesintotal.Text");
- }
- private void InitializeComponent()
- {
- this.button1 = new System.Windows.Forms.Button();
- this.button7 = new System.Windows.Forms.Button();
- this.button8 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
- this.label1 = new System.Windows.Forms.Label();
- this.SuspendLayout();
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(4, 9);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(37, 23);
- this.button1.TabIndex = 0;
- //this.button1.Text = "第一";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.FlatStyle = FlatStyle.Flat;
- this.button1.FlatAppearance.BorderSize = 0;
- this.button1.BackgroundImageLayout = ImageLayout.Center;
- this.button1.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasFirstIcon.png").Reference;
- //
- // button7
- //
- this.button7.Location = new System.Drawing.Point(199, 9);
- this.button7.Name = "button7";
- this.button7.Size = new System.Drawing.Size(37, 23);
- this.button7.TabIndex = 6;
- //this.button7.Text = "下一";
- this.button7.UseVisualStyleBackColor = true;
- this.button7.FlatStyle = FlatStyle.Flat;
- this.button7.FlatAppearance.BorderSize = 0;
- this.button7.BackgroundImageLayout = ImageLayout.Center;
- this.button7.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasNextIcon.png").Reference;
- //
- // button8
- //
- this.button8.Location = new System.Drawing.Point(242, 9);
- this.button8.Name = "button8";
- this.button8.Size = new System.Drawing.Size(41, 23);
- this.button8.TabIndex = 7;
- //this.button8.Text = "最后";
- this.button8.UseVisualStyleBackColor = true;
- this.button8.FlatStyle = FlatStyle.Flat;
- this.button8.FlatAppearance.BorderSize = 0;
- this.button8.BackgroundImageLayout = ImageLayout.Center;
- this.button8.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasLastIcon.png").Reference;
- //
- // button3
- //
- this.button3.Location = new System.Drawing.Point(47, 9);
- this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(37, 23);
- this.button3.TabIndex = 2;
- //this.button3.Text = "上一";
- this.button3.UseVisualStyleBackColor = true;
- this.button3.FlatStyle = FlatStyle.Flat;
- this.button3.FlatAppearance.BorderSize = 0;
- this.button3.BackgroundImageLayout = ImageLayout.Center;
- this.button3.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasPreviousIcon.png").Reference;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(101, 14);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(83, 12);
- this.label1.TabIndex = 8;
-
- this.label1.Text = "第1幅,共10幅";
- //
- // PlayUserContrtol
- //
- this.Controls.Add(this.label1);
- this.Controls.Add(this.button8);
- this.Controls.Add(this.button7);
- this.Controls.Add(this.button3);
- this.Controls.Add(this.button1);
- this.Name = "PlayUserContrtol";
- this.Size = new System.Drawing.Size(287, 41);
- this.ResumeLayout(false);
- this.PerformLayout();
- }
- }
- }
|