TheoreticalScaleStrip.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using PaintDotNet.SystemLayer;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Forms;
  8. namespace PaintDotNet.ImageCollect.CameraPreviewComponent
  9. {
  10. internal class TheoreticalScaleStrip : ToolStripEx
  11. {
  12. /// <summary>
  13. /// 十字线按钮
  14. /// </summary>
  15. public ToolStripButton theoreticalScaleButton;
  16. public TheoreticalScaleStrip()
  17. {
  18. InitializeComponent();
  19. this.theoreticalScaleButton.Image = PdnResources.GetImageResource("Icons.MenuToolsViewRulerIcon.png").Reference;
  20. this.theoreticalScaleButton.ToolTipText = PdnResources.GetString("CommonAction.Open");
  21. this.theoreticalScaleButton.Text = PdnResources.GetString("Menu.MeasureAction.TheoreticalScale.Text");
  22. this.theoreticalScaleButton.TextImageRelation = TextImageRelation.ImageBeforeText;
  23. }
  24. /// <summary>
  25. /// 实例化基础按钮
  26. /// </summary>
  27. private void InitializeComponent()
  28. {
  29. this.theoreticalScaleButton = new ToolStripButton();
  30. this.SuspendLayout();
  31. this.Items.Add(this.theoreticalScaleButton);
  32. this.ResumeLayout(false);
  33. }
  34. }
  35. }