mirror of
https://github.com/abrendan/smolEdit.git
synced 2025-06-16 12:45:02 +02:00
119 lines
5.8 KiB
C#
119 lines
5.8 KiB
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace V_EditorPro
|
|
{
|
|
public partial class MainForm : Form
|
|
{
|
|
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
|
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.searchReplaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
|
|
this.menuStrip1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
|
|
// MenuStrip
|
|
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.fileToolStripMenuItem,
|
|
this.editToolStripMenuItem,
|
|
this.helpToolStripMenuItem
|
|
});
|
|
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
|
this.menuStrip1.Name = "menuStrip1";
|
|
this.menuStrip1.Size = new System.Drawing.Size(800, 24);
|
|
this.menuStrip1.TabIndex = 0;
|
|
this.menuStrip1.Text = "menuStrip1";
|
|
|
|
// File Menu
|
|
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.openToolStripMenuItem,
|
|
this.saveToolStripMenuItem
|
|
});
|
|
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
|
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
|
|
this.fileToolStripMenuItem.Text = "File";
|
|
|
|
// Open
|
|
this.openToolStripMenuItem.Name = "openToolStripMenuItem";
|
|
this.openToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
|
|
this.openToolStripMenuItem.Text = "Open";
|
|
this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
|
|
|
|
// Save
|
|
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
|
this.saveToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
|
|
this.saveToolStripMenuItem.Text = "Save";
|
|
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
|
|
|
|
// Edit Menu
|
|
this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.searchReplaceToolStripMenuItem
|
|
});
|
|
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
|
|
this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20);
|
|
this.editToolStripMenuItem.Text = "Edit";
|
|
|
|
// Search/Replace
|
|
this.searchReplaceToolStripMenuItem.Name = "searchReplaceToolStripMenuItem";
|
|
this.searchReplaceToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
|
|
this.searchReplaceToolStripMenuItem.Text = "Search/Replace";
|
|
this.searchReplaceToolStripMenuItem.Click += new System.EventHandler(this.searchReplaceToolStripMenuItem_Click);
|
|
|
|
// Help Menu
|
|
this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.aboutToolStripMenuItem
|
|
});
|
|
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
|
|
this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
|
|
this.helpToolStripMenuItem.Text = "Help";
|
|
|
|
// About
|
|
this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
|
|
this.aboutToolStripMenuItem.Size = new System.Drawing.Size(107, 22);
|
|
this.aboutToolStripMenuItem.Text = "About";
|
|
this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
|
|
|
|
// RichTextBox
|
|
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.richTextBox1.Location = new System.Drawing.Point(0, 24);
|
|
this.richTextBox1.Name = "richTextBox1";
|
|
this.richTextBox1.Size = new System.Drawing.Size(800, 426);
|
|
this.richTextBox1.TabIndex = 1;
|
|
this.richTextBox1.Text = "";
|
|
|
|
// MainForm
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(800, 450);
|
|
this.Controls.Add(this.richTextBox1);
|
|
this.Controls.Add(this.menuStrip1);
|
|
this.MainMenuStrip = this.menuStrip1;
|
|
this.Name = "MainForm";
|
|
this.Text = "V_EditorPro";
|
|
this.menuStrip1.ResumeLayout(false);
|
|
this.menuStrip1.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
private System.Windows.Forms.MenuStrip menuStrip1;
|
|
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem searchReplaceToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
|
|
private System.Windows.Forms.RichTextBox richTextBox1;
|
|
}
|
|
} |