using PaintDotNet.SystemLayer; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace PaintDotNet.ImageCollect.CameraPreviewComponent { internal class TheoreticalScaleStrip : ToolStripEx { /// /// 十字线按钮 /// public ToolStripButton theoreticalScaleButton; public TheoreticalScaleStrip() { InitializeComponent(); this.theoreticalScaleButton.Image = PdnResources.GetImageResource("Icons.MenuToolsViewRulerIcon.png").Reference; this.theoreticalScaleButton.ToolTipText = PdnResources.GetString("CommonAction.Open"); this.theoreticalScaleButton.Text = PdnResources.GetString("Menu.MeasureAction.TheoreticalScale.Text"); this.theoreticalScaleButton.TextImageRelation = TextImageRelation.ImageBeforeText; } /// /// 实例化基础按钮 /// private void InitializeComponent() { this.theoreticalScaleButton = new ToolStripButton(); this.SuspendLayout(); this.Items.Add(this.theoreticalScaleButton); this.ResumeLayout(false); } } }