Added a new form to allow the user to manage naming patterns.

This commit is contained in:
Admin
2020-12-07 14:56:10 -06:00
parent b82027c796
commit 09768ae88b
10 changed files with 595 additions and 1 deletions
+261
View File
@@ -0,0 +1,261 @@
namespace DataOrganizer
{
partial class NamingConventionManager
{
/// <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()
{
this.MainLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
this.MainPanel = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.NamingConventionPatternsComboBox = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.RegexTextBox = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.NameTextBox = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.ExampleTextBox = new System.Windows.Forms.TextBox();
this.AddUpdateButton = new System.Windows.Forms.Button();
this.PatternIdLabel = new System.Windows.Forms.Label();
this.DeleteButton = new System.Windows.Forms.Button();
this.RegexResultsTextBox = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.RegexTestTextBox = new System.Windows.Forms.TextBox();
this.TestRegexButton = new System.Windows.Forms.Button();
this.MainLayoutPanel.SuspendLayout();
this.MainPanel.SuspendLayout();
this.SuspendLayout();
//
// MainLayoutPanel
//
this.MainLayoutPanel.ColumnCount = 1;
this.MainLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.MainLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.MainLayoutPanel.Controls.Add(this.MainPanel, 0, 0);
this.MainLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.MainLayoutPanel.Location = new System.Drawing.Point(0, 0);
this.MainLayoutPanel.Name = "MainLayoutPanel";
this.MainLayoutPanel.RowCount = 1;
this.MainLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.MainLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.MainLayoutPanel.Size = new System.Drawing.Size(800, 450);
this.MainLayoutPanel.TabIndex = 0;
//
// MainPanel
//
this.MainPanel.Controls.Add(this.TestRegexButton);
this.MainPanel.Controls.Add(this.RegexTestTextBox);
this.MainPanel.Controls.Add(this.label5);
this.MainPanel.Controls.Add(this.RegexResultsTextBox);
this.MainPanel.Controls.Add(this.DeleteButton);
this.MainPanel.Controls.Add(this.PatternIdLabel);
this.MainPanel.Controls.Add(this.AddUpdateButton);
this.MainPanel.Controls.Add(this.ExampleTextBox);
this.MainPanel.Controls.Add(this.label4);
this.MainPanel.Controls.Add(this.NameTextBox);
this.MainPanel.Controls.Add(this.label3);
this.MainPanel.Controls.Add(this.RegexTextBox);
this.MainPanel.Controls.Add(this.label2);
this.MainPanel.Controls.Add(this.NamingConventionPatternsComboBox);
this.MainPanel.Controls.Add(this.label1);
this.MainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.MainPanel.Location = new System.Drawing.Point(3, 3);
this.MainPanel.Name = "MainPanel";
this.MainPanel.Size = new System.Drawing.Size(794, 444);
this.MainPanel.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(15, 6);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(114, 20);
this.label1.TabIndex = 0;
this.label1.Text = "Select Pattern:";
//
// NamingConventionPatternsComboBox
//
this.NamingConventionPatternsComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.NamingConventionPatternsComboBox.FormattingEnabled = true;
this.NamingConventionPatternsComboBox.Location = new System.Drawing.Point(13, 36);
this.NamingConventionPatternsComboBox.Name = "NamingConventionPatternsComboBox";
this.NamingConventionPatternsComboBox.Size = new System.Drawing.Size(182, 28);
this.NamingConventionPatternsComboBox.TabIndex = 1;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(13, 170);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(59, 20);
this.label2.TabIndex = 2;
this.label2.Text = "Regex:";
//
// RegexTextBox
//
this.RegexTextBox.Location = new System.Drawing.Point(13, 200);
this.RegexTextBox.Multiline = true;
this.RegexTextBox.Name = "RegexTextBox";
this.RegexTextBox.Size = new System.Drawing.Size(776, 96);
this.RegexTextBox.TabIndex = 3;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(13, 104);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(111, 20);
this.label3.TabIndex = 4;
this.label3.Text = "Pattern Name:";
//
// NameTextBox
//
this.NameTextBox.Location = new System.Drawing.Point(13, 134);
this.NameTextBox.Name = "NameTextBox";
this.NameTextBox.Size = new System.Drawing.Size(182, 26);
this.NameTextBox.TabIndex = 5;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(13, 306);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(361, 20);
this.label4.TabIndex = 6;
this.label4.Text = "Example Text (I.E. What the Pattern Matches On):";
//
// ExampleTextBox
//
this.ExampleTextBox.Location = new System.Drawing.Point(13, 336);
this.ExampleTextBox.Name = "ExampleTextBox";
this.ExampleTextBox.Size = new System.Drawing.Size(357, 26);
this.ExampleTextBox.TabIndex = 7;
//
// AddUpdateButton
//
this.AddUpdateButton.Enabled = false;
this.AddUpdateButton.Location = new System.Drawing.Point(612, 388);
this.AddUpdateButton.Name = "AddUpdateButton";
this.AddUpdateButton.Size = new System.Drawing.Size(173, 47);
this.AddUpdateButton.TabIndex = 8;
this.AddUpdateButton.Text = "Insert New Pattern";
this.AddUpdateButton.UseVisualStyleBackColor = true;
//
// PatternIdLabel
//
this.PatternIdLabel.AutoSize = true;
this.PatternIdLabel.Location = new System.Drawing.Point(13, 74);
this.PatternIdLabel.Name = "PatternIdLabel";
this.PatternIdLabel.Size = new System.Drawing.Size(116, 20);
this.PatternIdLabel.TabIndex = 9;
this.PatternIdLabel.Text = "Pattern ID: N/A";
//
// DeleteButton
//
this.DeleteButton.Enabled = false;
this.DeleteButton.Location = new System.Drawing.Point(13, 388);
this.DeleteButton.Name = "DeleteButton";
this.DeleteButton.Size = new System.Drawing.Size(107, 47);
this.DeleteButton.TabIndex = 10;
this.DeleteButton.Text = "Delete";
this.DeleteButton.UseVisualStyleBackColor = true;
this.DeleteButton.Click += new System.EventHandler(this.DeleteButton_Click);
//
// RegexResultsTextBox
//
this.RegexResultsTextBox.Location = new System.Drawing.Point(220, 9);
this.RegexResultsTextBox.Multiline = true;
this.RegexResultsTextBox.Name = "RegexResultsTextBox";
this.RegexResultsTextBox.ReadOnly = true;
this.RegexResultsTextBox.Size = new System.Drawing.Size(565, 181);
this.RegexResultsTextBox.TabIndex = 11;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(405, 306);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(94, 20);
this.label5.TabIndex = 12;
this.label5.Text = "Regex Test:";
//
// RegexTestTextBox
//
this.RegexTestTextBox.Location = new System.Drawing.Point(505, 303);
this.RegexTestTextBox.Name = "RegexTestTextBox";
this.RegexTestTextBox.Size = new System.Drawing.Size(280, 26);
this.RegexTestTextBox.TabIndex = 13;
//
// TestRegexButton
//
this.TestRegexButton.Location = new System.Drawing.Point(681, 335);
this.TestRegexButton.Name = "TestRegexButton";
this.TestRegexButton.Size = new System.Drawing.Size(104, 37);
this.TestRegexButton.TabIndex = 14;
this.TestRegexButton.Text = "Test";
this.TestRegexButton.UseVisualStyleBackColor = true;
this.TestRegexButton.Click += new System.EventHandler(this.TestRegexButton_Click);
//
// NamingConventionManager
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.MainLayoutPanel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "NamingConventionManager";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Manage Naming Convention Patterns";
this.MainLayoutPanel.ResumeLayout(false);
this.MainPanel.ResumeLayout(false);
this.MainPanel.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel MainLayoutPanel;
private System.Windows.Forms.Panel MainPanel;
private System.Windows.Forms.ComboBox NamingConventionPatternsComboBox;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox RegexTextBox;
private System.Windows.Forms.TextBox NameTextBox;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox ExampleTextBox;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button AddUpdateButton;
private System.Windows.Forms.Label PatternIdLabel;
private System.Windows.Forms.Button DeleteButton;
private System.Windows.Forms.TextBox RegexResultsTextBox;
private System.Windows.Forms.Button TestRegexButton;
private System.Windows.Forms.TextBox RegexTestTextBox;
private System.Windows.Forms.Label label5;
}
}