445 lines
17 KiB
C#
445 lines
17 KiB
C#
namespace WinSize2Magick
|
|
{
|
|
partial class Form1
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
lblX = new Label();
|
|
lblY = new Label();
|
|
lblXplus = new Label();
|
|
lblYplus = new Label();
|
|
btnWrite = new Button();
|
|
txtPathFileName = new TextBox();
|
|
chkKeepOnTop = new CheckBox();
|
|
btnQuit = new Button();
|
|
btnSmallLarge = new Button();
|
|
trackBarOpacity = new TrackBar();
|
|
btnHideWindow = new Button();
|
|
tabControl1 = new TabControl();
|
|
tabPage3 = new TabPage();
|
|
webViewWeb = new Microsoft.Web.WebView2.WinForms.WebView2();
|
|
tabPage1 = new TabPage();
|
|
webView1 = new Microsoft.Web.WebView2.WinForms.WebView2();
|
|
tabPage2 = new TabPage();
|
|
webView2 = new Microsoft.Web.WebView2.WinForms.WebView2();
|
|
tabPage4 = new TabPage();
|
|
rtbText = new RichTextBox();
|
|
openFileDialog1 = new OpenFileDialog();
|
|
btnFile1 = new Button();
|
|
btnFile2 = new Button();
|
|
groupBox1 = new GroupBox();
|
|
btnGo = new Button();
|
|
btnDown = new Button();
|
|
btnOCR = new Button();
|
|
btnScreenshot = new Button();
|
|
btnFullView = new Button();
|
|
((System.ComponentModel.ISupportInitialize)trackBarOpacity).BeginInit();
|
|
tabControl1.SuspendLayout();
|
|
tabPage3.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)webViewWeb).BeginInit();
|
|
tabPage1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)webView1).BeginInit();
|
|
tabPage2.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)webView2).BeginInit();
|
|
tabPage4.SuspendLayout();
|
|
groupBox1.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// lblX
|
|
//
|
|
lblX.AutoSize = true;
|
|
lblX.Location = new Point(8, 9);
|
|
lblX.Name = "lblX";
|
|
lblX.Size = new Size(25, 20);
|
|
lblX.TabIndex = 0;
|
|
lblX.Text = "X: ";
|
|
//
|
|
// lblY
|
|
//
|
|
lblY.AutoSize = true;
|
|
lblY.Location = new Point(61, 9);
|
|
lblY.Name = "lblY";
|
|
lblY.Size = new Size(24, 20);
|
|
lblY.TabIndex = 1;
|
|
lblY.Text = "Y: ";
|
|
//
|
|
// lblXplus
|
|
//
|
|
lblXplus.AutoSize = true;
|
|
lblXplus.Location = new Point(115, 9);
|
|
lblXplus.Name = "lblXplus";
|
|
lblXplus.Size = new Size(35, 20);
|
|
lblXplus.TabIndex = 2;
|
|
lblXplus.Text = "+X: ";
|
|
//
|
|
// lblYplus
|
|
//
|
|
lblYplus.AutoSize = true;
|
|
lblYplus.Location = new Point(178, 9);
|
|
lblYplus.Name = "lblYplus";
|
|
lblYplus.Size = new Size(34, 20);
|
|
lblYplus.TabIndex = 3;
|
|
lblYplus.Text = "+Y: ";
|
|
//
|
|
// btnWrite
|
|
//
|
|
btnWrite.Location = new Point(8, 65);
|
|
btnWrite.Name = "btnWrite";
|
|
btnWrite.Size = new Size(94, 29);
|
|
btnWrite.TabIndex = 4;
|
|
btnWrite.Text = "Write";
|
|
btnWrite.UseVisualStyleBackColor = true;
|
|
btnWrite.Click += btnWrite_Click;
|
|
//
|
|
// txtPathFileName
|
|
//
|
|
txtPathFileName.Location = new Point(8, 32);
|
|
txtPathFileName.Name = "txtPathFileName";
|
|
txtPathFileName.Size = new Size(270, 27);
|
|
txtPathFileName.TabIndex = 5;
|
|
txtPathFileName.Text = "D:\\tmp\\sourcedrive\\cropsize.txt";
|
|
//
|
|
// chkKeepOnTop
|
|
//
|
|
chkKeepOnTop.AutoSize = true;
|
|
chkKeepOnTop.Location = new Point(161, 70);
|
|
chkKeepOnTop.Name = "chkKeepOnTop";
|
|
chkKeepOnTop.Size = new Size(117, 24);
|
|
chkKeepOnTop.TabIndex = 6;
|
|
chkKeepOnTop.Text = "Keep On Top";
|
|
chkKeepOnTop.UseVisualStyleBackColor = true;
|
|
chkKeepOnTop.CheckedChanged += chkKeepOnTop_CheckedChanged;
|
|
//
|
|
// btnQuit
|
|
//
|
|
btnQuit.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
btnQuit.Location = new Point(8, 394);
|
|
btnQuit.Name = "btnQuit";
|
|
btnQuit.Size = new Size(94, 29);
|
|
btnQuit.TabIndex = 7;
|
|
btnQuit.Text = "Quit";
|
|
btnQuit.UseVisualStyleBackColor = true;
|
|
btnQuit.Click += btnQuit_Click;
|
|
//
|
|
// btnSmallLarge
|
|
//
|
|
btnSmallLarge.Location = new Point(8, 109);
|
|
btnSmallLarge.Name = "btnSmallLarge";
|
|
btnSmallLarge.Size = new Size(54, 29);
|
|
btnSmallLarge.TabIndex = 8;
|
|
btnSmallLarge.Text = "<->";
|
|
btnSmallLarge.UseVisualStyleBackColor = true;
|
|
btnSmallLarge.Click += btnSmallLarge_Click;
|
|
//
|
|
// trackBarOpacity
|
|
//
|
|
trackBarOpacity.LargeChange = 1;
|
|
trackBarOpacity.Location = new Point(8, 144);
|
|
trackBarOpacity.Name = "trackBarOpacity";
|
|
trackBarOpacity.Size = new Size(266, 56);
|
|
trackBarOpacity.TabIndex = 9;
|
|
trackBarOpacity.Value = 8;
|
|
trackBarOpacity.ValueChanged += trackBarOpacity_ValueChanged;
|
|
//
|
|
// btnHideWindow
|
|
//
|
|
btnHideWindow.Location = new Point(68, 109);
|
|
btnHideWindow.Name = "btnHideWindow";
|
|
btnHideWindow.Size = new Size(94, 29);
|
|
btnHideWindow.TabIndex = 10;
|
|
btnHideWindow.Text = "minimize";
|
|
btnHideWindow.UseVisualStyleBackColor = true;
|
|
btnHideWindow.Click += btnHideWindow_Click;
|
|
//
|
|
// tabControl1
|
|
//
|
|
tabControl1.Controls.Add(tabPage3);
|
|
tabControl1.Controls.Add(tabPage1);
|
|
tabControl1.Controls.Add(tabPage2);
|
|
tabControl1.Controls.Add(tabPage4);
|
|
tabControl1.Location = new Point(294, -4);
|
|
tabControl1.Name = "tabControl1";
|
|
tabControl1.SelectedIndex = 0;
|
|
tabControl1.Size = new Size(406, 392);
|
|
tabControl1.TabIndex = 11;
|
|
tabControl1.DoubleClick += tabControl1_DoubleClick;
|
|
//
|
|
// tabPage3
|
|
//
|
|
tabPage3.Controls.Add(webViewWeb);
|
|
tabPage3.Location = new Point(4, 29);
|
|
tabPage3.Name = "tabPage3";
|
|
tabPage3.Size = new Size(398, 359);
|
|
tabPage3.TabIndex = 2;
|
|
tabPage3.Text = "General";
|
|
tabPage3.UseVisualStyleBackColor = true;
|
|
//
|
|
// webViewWeb
|
|
//
|
|
webViewWeb.AllowExternalDrop = true;
|
|
webViewWeb.CreationProperties = null;
|
|
webViewWeb.DefaultBackgroundColor = Color.White;
|
|
webViewWeb.Dock = DockStyle.Fill;
|
|
webViewWeb.Location = new Point(0, 0);
|
|
webViewWeb.Name = "webViewWeb";
|
|
webViewWeb.Size = new Size(398, 359);
|
|
webViewWeb.TabIndex = 1;
|
|
webViewWeb.ZoomFactor = 1D;
|
|
//
|
|
// tabPage1
|
|
//
|
|
tabPage1.Controls.Add(webView1);
|
|
tabPage1.Location = new Point(4, 29);
|
|
tabPage1.Name = "tabPage1";
|
|
tabPage1.Padding = new Padding(3);
|
|
tabPage1.Size = new Size(398, 359);
|
|
tabPage1.TabIndex = 0;
|
|
tabPage1.Text = "File1";
|
|
tabPage1.UseVisualStyleBackColor = true;
|
|
//
|
|
// webView1
|
|
//
|
|
webView1.AllowExternalDrop = true;
|
|
webView1.CreationProperties = null;
|
|
webView1.DefaultBackgroundColor = Color.White;
|
|
webView1.Dock = DockStyle.Fill;
|
|
webView1.Location = new Point(3, 3);
|
|
webView1.Name = "webView1";
|
|
webView1.Size = new Size(392, 353);
|
|
webView1.TabIndex = 0;
|
|
webView1.ZoomFactor = 1D;
|
|
//
|
|
// tabPage2
|
|
//
|
|
tabPage2.Controls.Add(webView2);
|
|
tabPage2.Location = new Point(4, 29);
|
|
tabPage2.Name = "tabPage2";
|
|
tabPage2.Padding = new Padding(3);
|
|
tabPage2.Size = new Size(398, 359);
|
|
tabPage2.TabIndex = 1;
|
|
tabPage2.Text = "File2";
|
|
tabPage2.UseVisualStyleBackColor = true;
|
|
//
|
|
// webView2
|
|
//
|
|
webView2.AllowExternalDrop = true;
|
|
webView2.CreationProperties = null;
|
|
webView2.DefaultBackgroundColor = Color.White;
|
|
webView2.Dock = DockStyle.Fill;
|
|
webView2.Location = new Point(3, 3);
|
|
webView2.Name = "webView2";
|
|
webView2.Size = new Size(392, 353);
|
|
webView2.TabIndex = 1;
|
|
webView2.ZoomFactor = 1D;
|
|
webView2.DoubleClick += webView2_DoubleClick;
|
|
//
|
|
// tabPage4
|
|
//
|
|
tabPage4.Controls.Add(rtbText);
|
|
tabPage4.Location = new Point(4, 29);
|
|
tabPage4.Name = "tabPage4";
|
|
tabPage4.Size = new Size(398, 359);
|
|
tabPage4.TabIndex = 3;
|
|
tabPage4.Text = "OCR";
|
|
tabPage4.UseVisualStyleBackColor = true;
|
|
//
|
|
// rtbText
|
|
//
|
|
rtbText.Dock = DockStyle.Fill;
|
|
rtbText.Location = new Point(0, 0);
|
|
rtbText.Name = "rtbText";
|
|
rtbText.Size = new Size(398, 359);
|
|
rtbText.TabIndex = 0;
|
|
rtbText.Text = "";
|
|
//
|
|
// openFileDialog1
|
|
//
|
|
openFileDialog1.FileName = "openFileDialog1";
|
|
//
|
|
// btnFile1
|
|
//
|
|
btnFile1.Location = new Point(103, 26);
|
|
btnFile1.Name = "btnFile1";
|
|
btnFile1.Size = new Size(67, 29);
|
|
btnFile1.TabIndex = 12;
|
|
btnFile1.Text = "File1";
|
|
btnFile1.UseVisualStyleBackColor = true;
|
|
btnFile1.Click += btnFile1_Click;
|
|
//
|
|
// btnFile2
|
|
//
|
|
btnFile2.Location = new Point(170, 26);
|
|
btnFile2.Name = "btnFile2";
|
|
btnFile2.Size = new Size(67, 29);
|
|
btnFile2.TabIndex = 13;
|
|
btnFile2.Text = "File2";
|
|
btnFile2.UseVisualStyleBackColor = true;
|
|
btnFile2.Click += btnFile1_Click;
|
|
//
|
|
// groupBox1
|
|
//
|
|
groupBox1.Controls.Add(btnGo);
|
|
groupBox1.Controls.Add(btnFile1);
|
|
groupBox1.Controls.Add(btnFile2);
|
|
groupBox1.Location = new Point(12, 207);
|
|
groupBox1.Name = "groupBox1";
|
|
groupBox1.Size = new Size(250, 76);
|
|
groupBox1.TabIndex = 14;
|
|
groupBox1.TabStop = false;
|
|
groupBox1.Text = "Select";
|
|
//
|
|
// btnGo
|
|
//
|
|
btnGo.Location = new Point(6, 26);
|
|
btnGo.Name = "btnGo";
|
|
btnGo.Size = new Size(67, 29);
|
|
btnGo.TabIndex = 14;
|
|
btnGo.Text = "Go";
|
|
btnGo.UseVisualStyleBackColor = true;
|
|
btnGo.Click += btnGo_Click;
|
|
//
|
|
// btnDown
|
|
//
|
|
btnDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
btnDown.Location = new Point(633, 394);
|
|
btnDown.Name = "btnDown";
|
|
btnDown.Size = new Size(67, 29);
|
|
btnDown.TabIndex = 17;
|
|
btnDown.Text = "Down";
|
|
btnDown.UseVisualStyleBackColor = true;
|
|
btnDown.Click += btnDown_Click;
|
|
//
|
|
// btnOCR
|
|
//
|
|
btnOCR.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
btnOCR.Location = new Point(560, 394);
|
|
btnOCR.Name = "btnOCR";
|
|
btnOCR.Size = new Size(67, 29);
|
|
btnOCR.TabIndex = 16;
|
|
btnOCR.Text = "OCR";
|
|
btnOCR.UseVisualStyleBackColor = true;
|
|
btnOCR.Click += btnOCR_Click;
|
|
//
|
|
// btnScreenshot
|
|
//
|
|
btnScreenshot.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
btnScreenshot.Location = new Point(487, 394);
|
|
btnScreenshot.Name = "btnScreenshot";
|
|
btnScreenshot.Size = new Size(67, 29);
|
|
btnScreenshot.TabIndex = 15;
|
|
btnScreenshot.Text = "Shoot";
|
|
btnScreenshot.UseVisualStyleBackColor = true;
|
|
btnScreenshot.Click += btnScreenshot_Click;
|
|
//
|
|
// btnFullView
|
|
//
|
|
btnFullView.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
btnFullView.Location = new Point(108, 394);
|
|
btnFullView.Name = "btnFullView";
|
|
btnFullView.Size = new Size(94, 29);
|
|
btnFullView.TabIndex = 18;
|
|
btnFullView.Text = "Full View";
|
|
btnFullView.UseVisualStyleBackColor = true;
|
|
btnFullView.Click += btnFullView_Click;
|
|
//
|
|
// Form1
|
|
//
|
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(704, 430);
|
|
ControlBox = false;
|
|
Controls.Add(tabControl1);
|
|
Controls.Add(btnFullView);
|
|
Controls.Add(btnScreenshot);
|
|
Controls.Add(btnOCR);
|
|
Controls.Add(btnDown);
|
|
Controls.Add(groupBox1);
|
|
Controls.Add(btnHideWindow);
|
|
Controls.Add(trackBarOpacity);
|
|
Controls.Add(btnSmallLarge);
|
|
Controls.Add(btnQuit);
|
|
Controls.Add(chkKeepOnTop);
|
|
Controls.Add(txtPathFileName);
|
|
Controls.Add(btnWrite);
|
|
Controls.Add(lblYplus);
|
|
Controls.Add(lblXplus);
|
|
Controls.Add(lblY);
|
|
Controls.Add(lblX);
|
|
FormBorderStyle = FormBorderStyle.SizableToolWindow;
|
|
Name = "Form1";
|
|
Text = "WinSize2Magick";
|
|
Load += Form1_Load;
|
|
SizeChanged += Form1_SizeChanged;
|
|
Move += Form1_Move;
|
|
((System.ComponentModel.ISupportInitialize)trackBarOpacity).EndInit();
|
|
tabControl1.ResumeLayout(false);
|
|
tabPage3.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)webViewWeb).EndInit();
|
|
tabPage1.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)webView1).EndInit();
|
|
tabPage2.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)webView2).EndInit();
|
|
tabPage4.ResumeLayout(false);
|
|
groupBox1.ResumeLayout(false);
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Label lblX;
|
|
private Label lblY;
|
|
private Label lblXplus;
|
|
private Label lblYplus;
|
|
private Button btnWrite;
|
|
private TextBox txtPathFileName;
|
|
private CheckBox chkKeepOnTop;
|
|
private Button btnQuit;
|
|
private Button btnSmallLarge;
|
|
private TrackBar trackBarOpacity;
|
|
private Button btnHideWindow;
|
|
private TabControl tabControl1;
|
|
private TabPage tabPage1;
|
|
private TabPage tabPage2;
|
|
private Microsoft.Web.WebView2.WinForms.WebView2 webView1;
|
|
private TabPage tabPage3;
|
|
private Microsoft.Web.WebView2.WinForms.WebView2 webView2;
|
|
private OpenFileDialog openFileDialog1;
|
|
private Button btnFile1;
|
|
private Button btnFile2;
|
|
private Microsoft.Web.WebView2.WinForms.WebView2 webViewWeb;
|
|
private GroupBox groupBox1;
|
|
private Button btnGo;
|
|
private Button btnScreenshot;
|
|
private Button btnOCR;
|
|
private TabPage tabPage4;
|
|
private RichTextBox rtbText;
|
|
private Button btnDown;
|
|
private Button btnFullView;
|
|
}
|
|
}
|