136 lines
4.7 KiB
C#
136 lines
4.7 KiB
C#
namespace Metoder
|
|
{
|
|
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()
|
|
{
|
|
btn_find = new Button();
|
|
txtbx_find = new TextBox();
|
|
btn_clear = new Button();
|
|
lbl_found = new Label();
|
|
txtbx_text = new RichTextBox();
|
|
txbx_replace = new TextBox();
|
|
btn_replace = new Button();
|
|
SuspendLayout();
|
|
//
|
|
// btn_find
|
|
//
|
|
btn_find.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
btn_find.Location = new Point(676, 6);
|
|
btn_find.Name = "btn_find";
|
|
btn_find.Size = new Size(112, 34);
|
|
btn_find.TabIndex = 1;
|
|
btn_find.Text = "Find";
|
|
btn_find.UseVisualStyleBackColor = true;
|
|
btn_find.Click += btn_find_Click;
|
|
//
|
|
// txtbx_find
|
|
//
|
|
txtbx_find.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
txtbx_find.Location = new Point(520, 6);
|
|
txtbx_find.Name = "txtbx_find";
|
|
txtbx_find.PlaceholderText = "Search text";
|
|
txtbx_find.Size = new Size(150, 31);
|
|
txtbx_find.TabIndex = 2;
|
|
//
|
|
// btn_clear
|
|
//
|
|
btn_clear.Location = new Point(12, 9);
|
|
btn_clear.Name = "btn_clear";
|
|
btn_clear.Size = new Size(112, 34);
|
|
btn_clear.TabIndex = 3;
|
|
btn_clear.Text = "Clear";
|
|
btn_clear.UseVisualStyleBackColor = true;
|
|
btn_clear.Click += btn_clear_Click;
|
|
//
|
|
// lbl_found
|
|
//
|
|
lbl_found.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
lbl_found.AutoSize = true;
|
|
lbl_found.Location = new Point(676, 44);
|
|
lbl_found.Name = "lbl_found";
|
|
lbl_found.Size = new Size(108, 25);
|
|
lbl_found.TabIndex = 4;
|
|
lbl_found.Text = "items found";
|
|
lbl_found.Visible = false;
|
|
//
|
|
// txtbx_text
|
|
//
|
|
txtbx_text.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
txtbx_text.Location = new Point(12, 72);
|
|
txtbx_text.Name = "txtbx_text";
|
|
txtbx_text.Size = new Size(776, 352);
|
|
txtbx_text.TabIndex = 5;
|
|
txtbx_text.Text = "";
|
|
//
|
|
// txbx_replace
|
|
//
|
|
txbx_replace.Location = new Point(171, 8);
|
|
txbx_replace.Name = "txbx_replace";
|
|
txbx_replace.PlaceholderText = "Replace found text with";
|
|
txbx_replace.Size = new Size(197, 31);
|
|
txbx_replace.TabIndex = 6;
|
|
//
|
|
// btn_replace
|
|
//
|
|
btn_replace.Location = new Point(374, 6);
|
|
btn_replace.Name = "btn_replace";
|
|
btn_replace.Size = new Size(112, 34);
|
|
btn_replace.TabIndex = 7;
|
|
btn_replace.Text = "Replace found";
|
|
btn_replace.UseVisualStyleBackColor = true;
|
|
btn_replace.Click += btn_replace_Click;
|
|
//
|
|
// Form1
|
|
//
|
|
AutoScaleDimensions = new SizeF(10F, 25F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(800, 450);
|
|
Controls.Add(btn_replace);
|
|
Controls.Add(txbx_replace);
|
|
Controls.Add(txtbx_text);
|
|
Controls.Add(lbl_found);
|
|
Controls.Add(btn_clear);
|
|
Controls.Add(txtbx_find);
|
|
Controls.Add(btn_find);
|
|
Name = "Form1";
|
|
Text = "TextChecker";
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
private Button btn_find;
|
|
private TextBox txtbx_find;
|
|
private Button btn_clear;
|
|
private Label lbl_found;
|
|
private RichTextBox txtbx_text;
|
|
private TextBox txbx_replace;
|
|
private Button btn_replace;
|
|
}
|
|
}
|