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; using PaintDotNet.CustomControl; namespace PaintDotNet.GeneralAnalysis.CustomInterface { public class ToolUserContrtol : BaseUserControl { public Button button2; public Button button3; public Button button4; public Button button5; public Button button6; public Button button7; public Button button8; public Button button1; public ToolTip toolTip1; public ToolUserContrtol() { InitializeComponent(); InitializeToolTip(); } private void InitializeToolTip() { this.toolTip1 = new ToolTip(); this.toolTip1.SetToolTip(this.button1, PdnResources.GetString("Menu.Edit.ZoomIn.Text")); this.toolTip1.SetToolTip(this.button2, PdnResources.GetString("CommonAction.ZoomOut")); this.toolTip1.SetToolTip(this.button3, PdnResources.GetString("Menu.Pointertothemodel.text")); this.toolTip1.SetToolTip(this.button4, PdnResources.GetString("Menu.pingyi.Text")); this.toolTip1.SetToolTip(this.button5, PdnResources.GetString("Menu.Edit.ZoomToWindow.Text")); this.toolTip1.SetToolTip(this.button6, PdnResources.GetString("Menu.yuanshidaxiao.Text")); this.toolTip1.SetToolTip(this.button7, PdnResources.GetString("Menu.shun.Text")); this.toolTip1.SetToolTip(this.button8, PdnResources.GetString("Menu.nishizhen.Text")); this.toolTip1.ShowAlways = true; } private void InitializeComponent() { this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.button4 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button(); this.button6 = new System.Windows.Forms.Button(); this.button7 = new System.Windows.Forms.Button(); this.button8 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(4, 9); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(27, 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.MenuAtlasLargeIcon.png").Reference; // // button2 // this.button2.Location = new System.Drawing.Point(40, 9); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(27, 23); this.button2.TabIndex = 1; //this.button2.Text = "小"; this.button2.UseVisualStyleBackColor = true; this.button2.FlatStyle = FlatStyle.Flat; this.button2.FlatAppearance.BorderSize = 0; this.button2.BackgroundImageLayout = ImageLayout.Center; this.button2.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasSmallIcon.png").Reference; // // button3 // this.button3.Location = new System.Drawing.Point(76, 9); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(27, 23); this.button3.TabIndex = 2; //this.button3.Text = "p"; 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.MenuChoiseActionIcon.png").Reference; // // button4 // this.button4.Location = new System.Drawing.Point(112, 9); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(27, 23); this.button4.TabIndex = 3; //this.button4.Text = "移"; this.button4.UseVisualStyleBackColor = true; this.button4.FlatStyle = FlatStyle.Flat; this.button4.FlatAppearance.BorderSize = 0; this.button4.BackgroundImageLayout = ImageLayout.Center; this.button4.BackgroundImage = PdnResources.GetImageResource("Icons.PanToolIcon.png").Reference; // // button5 // this.button5.Location = new System.Drawing.Point(148, 9); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(27, 23); this.button5.TabIndex = 4; //this.button5.Text = "合"; this.button5.UseVisualStyleBackColor = true; this.button5.FlatStyle = FlatStyle.Flat; this.button5.FlatAppearance.BorderSize = 0; this.button5.BackgroundImageLayout = ImageLayout.Center; this.button5.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasMergeIcon.png").Reference; // // button6 // this.button6.Location = new System.Drawing.Point(184, 9); this.button6.Name = "button6"; this.button6.Size = new System.Drawing.Size(27, 23); this.button6.TabIndex = 5; //this.button6.Text = "原"; this.button6.UseVisualStyleBackColor = true; this.button6.FlatStyle = FlatStyle.Flat; this.button6.FlatAppearance.BorderSize = 0; this.button6.BackgroundImageLayout = ImageLayout.Center; this.button6.BackgroundImage = PdnResources.GetImageResource("Icons.MenuAtlasOriginIcon.png").Reference; // // button7 // this.button7.Location = new System.Drawing.Point(220, 9); this.button7.Name = "button7"; this.button7.Size = new System.Drawing.Size(27, 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.MenuAtlasClockwiseIcon.png").Reference; // // button8 // this.button8.Location = new System.Drawing.Point(256, 9); this.button8.Name = "button8"; this.button8.Size = new System.Drawing.Size(27, 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.MenuAtlasCounterclockwiseIcon.png").Reference; // // ToolUserContrtol // this.Controls.Add(this.button8); this.Controls.Add(this.button7); this.Controls.Add(this.button6); this.Controls.Add(this.button5); this.Controls.Add(this.button4); this.Controls.Add(this.button3); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Name = "ToolUserContrtol"; this.Size = new System.Drawing.Size(287, 41); this.ResumeLayout(false); } } }