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.Processing; namespace PaintDotNet.Instrument.CustomInterface { internal class ColControl : UserControl { public Button button; public Label label; public Panel panel; public DocumentWorkspaceWindow workspaceWindow; /// /// 判断选中 /// public bool isSelect = false; public ColControl() { InitializeComponent(); InitializeLanguageText(); } private void InitializeLanguageText() { this.button.Text = PdnResources.GetString("Menu.Gallery.text"); } private void InitializeComponent() { this.button = new System.Windows.Forms.Button(); this.label = new System.Windows.Forms.Label(); this.panel = new System.Windows.Forms.Panel(); this.workspaceWindow = new DocumentWorkspaceWindow(); this.SuspendLayout(); // // button // this.button.Location = new System.Drawing.Point(1, 1); this.button.Name = "button"; this.button.Size = new System.Drawing.Size(75, 23); this.button.TabIndex = 0; this.button.Text = "图库"; // // label // this.label.Location = new System.Drawing.Point(1, 24); this.label.Name = "label"; this.label.Size = new System.Drawing.Size(190, 23); this.label.TabIndex = 1; // // panel // this.panel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel.Location = new System.Drawing.Point(1, 47); this.panel.Name = "panel"; this.panel.Size = new System.Drawing.Size(566, 387); this.panel.TabIndex = 2; this.panel.Controls.Add(this.workspaceWindow); // // // this.workspaceWindow.Location = new System.Drawing.Point(0, 0); this.workspaceWindow.Dock = DockStyle.Fill; this.workspaceWindow.HookMouseEvents(); this.workspaceWindow.AuxiliaryLineEnabled = false; this.workspaceWindow.RulersEnabled = true; this.workspaceWindow.Visible = false; //this.workspaceWindow.PanelBottom.Visible = false; this.workspaceWindow.removeEvent(); // // ColControl // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.button); this.Controls.Add(this.label); this.Controls.Add(this.panel); this.Name = "ColControl"; this.Size = new System.Drawing.Size(566, 440); this.ResumeLayout(false); } } }