160 lines
5.7 KiB
C#
160 lines
5.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();
|
|
txtbx_replace = new TextBox();
|
|
btn_replace = new Button();
|
|
btn_sort = new Button();
|
|
SuspendLayout();
|
|
//
|
|
// btn_find
|
|
//
|
|
btn_find.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
btn_find.Location = new Point(726, 4);
|
|
btn_find.Margin = new Padding(2);
|
|
btn_find.Name = "btn_find";
|
|
btn_find.Size = new Size(78, 24);
|
|
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(617, 4);
|
|
txtbx_find.Margin = new Padding(2);
|
|
txtbx_find.Name = "txtbx_find";
|
|
txtbx_find.PlaceholderText = "Search text";
|
|
txtbx_find.Size = new Size(106, 23);
|
|
txtbx_find.TabIndex = 2;
|
|
//
|
|
// btn_clear
|
|
//
|
|
btn_clear.Location = new Point(8, 5);
|
|
btn_clear.Margin = new Padding(2);
|
|
btn_clear.Name = "btn_clear";
|
|
btn_clear.Size = new Size(78, 23);
|
|
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(726, 30);
|
|
lbl_found.Margin = new Padding(2, 0, 2, 0);
|
|
lbl_found.Name = "lbl_found";
|
|
lbl_found.Size = new Size(71, 15);
|
|
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(8, 47);
|
|
txtbx_text.Margin = new Padding(2);
|
|
txtbx_text.Name = "txtbx_text";
|
|
txtbx_text.Size = new Size(797, 455);
|
|
txtbx_text.TabIndex = 5;
|
|
txtbx_text.Text = "";
|
|
//
|
|
// txtbx_replace
|
|
//
|
|
txtbx_replace.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
txtbx_replace.Location = new Point(391, 5);
|
|
txtbx_replace.Margin = new Padding(2);
|
|
txtbx_replace.Name = "txtbx_replace";
|
|
txtbx_replace.PlaceholderText = "Replace found text with";
|
|
txtbx_replace.Size = new Size(139, 23);
|
|
txtbx_replace.TabIndex = 6;
|
|
//
|
|
// btn_replace
|
|
//
|
|
btn_replace.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
btn_replace.Location = new Point(533, 4);
|
|
btn_replace.Margin = new Padding(2);
|
|
btn_replace.Name = "btn_replace";
|
|
btn_replace.Size = new Size(78, 24);
|
|
btn_replace.TabIndex = 7;
|
|
btn_replace.Text = "Replace found";
|
|
btn_replace.UseVisualStyleBackColor = true;
|
|
btn_replace.Click += btn_replace_Click;
|
|
//
|
|
// btn_sort
|
|
//
|
|
btn_sort.Location = new Point(91, 5);
|
|
btn_sort.Name = "btn_sort";
|
|
btn_sort.Size = new Size(96, 23);
|
|
btn_sort.TabIndex = 8;
|
|
btn_sort.Text = "Sort Words";
|
|
btn_sort.UseVisualStyleBackColor = true;
|
|
btn_sort.Click += btn_sort_Click;
|
|
//
|
|
// Form1
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(813, 516);
|
|
Controls.Add(btn_sort);
|
|
Controls.Add(btn_replace);
|
|
Controls.Add(txtbx_replace);
|
|
Controls.Add(txtbx_text);
|
|
Controls.Add(lbl_found);
|
|
Controls.Add(btn_clear);
|
|
Controls.Add(txtbx_find);
|
|
Controls.Add(btn_find);
|
|
Margin = new Padding(2);
|
|
MinimumSize = new Size(630, 168);
|
|
Name = "Form1";
|
|
Text = "Text Tool";
|
|
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 txtbx_replace;
|
|
private Button btn_replace;
|
|
private Button btn_sort;
|
|
}
|
|
}
|