123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 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
- {
- /// <summary>
- /// 十字线按钮
- /// </summary>
- 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;
- }
- /// <summary>
- /// 实例化基础按钮
- /// </summary>
- private void InitializeComponent()
- {
- this.theoreticalScaleButton = new ToolStripButton();
- this.SuspendLayout();
- this.Items.Add(this.theoreticalScaleButton);
- this.ResumeLayout(false);
- }
- }
- }
|