Updated the ProfileManager so that users can change the FolderGroup's name (a very hacky job but it'll do). Hooked up the FileViewers 'Update Databse' button so new files can be commited to the database.

This commit is contained in:
Admin
2020-12-07 19:11:05 -06:00
parent 59725feeec
commit 27aa247c36
7 changed files with 347 additions and 239 deletions
+184 -186
View File
@@ -33,34 +33,34 @@
this.ProfilesComboBox = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.ProfileInfoPanel = new System.Windows.Forms.Panel();
this.InsertGroupName = new System.Windows.Forms.Button();
this.DeleteProfileButton = new System.Windows.Forms.Button();
this.MachineNameTextBox = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.ProfileNameTextBox = new System.Windows.Forms.TextBox();
this.MachineNameLabel = new System.Windows.Forms.Label();
this.AddOrUpdateProfileButton = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.SelectNewContentLocationButton = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.NewContentLocationTextBox = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.FolderNameTextBox = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.NamingConventionComboBox = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.FolderGroupPathTextBox = new System.Windows.Forms.TextBox();
this.FolderGroupPathButton = new System.Windows.Forms.Button();
this.InsertGroupName = new System.Windows.Forms.Button();
this.FolderGroupListView = new System.Windows.Forms.ListView();
this.NameColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.label5 = new System.Windows.Forms.Label();
this.NamingConventionComboBox = new System.Windows.Forms.ComboBox();
this.FolderGroupPathButton = new System.Windows.Forms.Button();
this.label6 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.label7 = new System.Windows.Forms.Label();
this.FolderNameTextBox = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.NewContentLocationTextBox = new System.Windows.Forms.TextBox();
this.MachineNameTextBox = new System.Windows.Forms.TextBox();
this.AddOrUpdateProfileButton = new System.Windows.Forms.Button();
this.DeleteProfileButton = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.ProfileNameTextBox = new System.Windows.Forms.TextBox();
this.SelectNewContentLocationButton = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.MachineNameLabel = new System.Windows.Forms.Label();
this.MainLayoutPanel.SuspendLayout();
this.MainPanel.SuspendLayout();
this.ProfileInfoPanel.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// MainLayoutPanel
@@ -116,6 +116,65 @@
this.ProfileInfoPanel.Size = new System.Drawing.Size(1283, 440);
this.ProfileInfoPanel.TabIndex = 1;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.FolderNameTextBox);
this.groupBox2.Controls.Add(this.label7);
this.groupBox2.Controls.Add(this.NamingConventionComboBox);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Controls.Add(this.FolderGroupPathTextBox);
this.groupBox2.Controls.Add(this.InsertGroupName);
this.groupBox2.Controls.Add(this.FolderGroupListView);
this.groupBox2.Controls.Add(this.FolderGroupPathButton);
this.groupBox2.Controls.Add(this.label6);
this.groupBox2.Location = new System.Drawing.Point(620, 3);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(658, 430);
this.groupBox2.TabIndex = 18;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Folder Group Details";
//
// FolderNameTextBox
//
this.FolderNameTextBox.Location = new System.Drawing.Point(163, 273);
this.FolderNameTextBox.Name = "FolderNameTextBox";
this.FolderNameTextBox.Size = new System.Drawing.Size(311, 26);
this.FolderNameTextBox.TabIndex = 5;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(6, 276);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(104, 20);
this.label7.TabIndex = 15;
this.label7.Text = "Group Name:";
//
// NamingConventionComboBox
//
this.NamingConventionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.NamingConventionComboBox.FormattingEnabled = true;
this.NamingConventionComboBox.Location = new System.Drawing.Point(163, 377);
this.NamingConventionComboBox.Name = "NamingConventionComboBox";
this.NamingConventionComboBox.Size = new System.Drawing.Size(311, 28);
this.NamingConventionComboBox.TabIndex = 8;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(6, 380);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(151, 20);
this.label5.TabIndex = 15;
this.label5.Text = "Naming Convention:";
//
// FolderGroupPathTextBox
//
this.FolderGroupPathTextBox.Location = new System.Drawing.Point(163, 325);
this.FolderGroupPathTextBox.Name = "FolderGroupPathTextBox";
this.FolderGroupPathTextBox.Size = new System.Drawing.Size(311, 26);
this.FolderGroupPathTextBox.TabIndex = 6;
//
// InsertGroupName
//
this.InsertGroupName.Enabled = false;
@@ -127,122 +186,6 @@
this.InsertGroupName.UseVisualStyleBackColor = true;
this.InsertGroupName.Click += new System.EventHandler(this.InsertGroupName_Click);
//
// DeleteProfileButton
//
this.DeleteProfileButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.DeleteProfileButton.Location = new System.Drawing.Point(17, 320);
this.DeleteProfileButton.Name = "DeleteProfileButton";
this.DeleteProfileButton.Size = new System.Drawing.Size(75, 40);
this.DeleteProfileButton.TabIndex = 8;
this.DeleteProfileButton.TabStop = false;
this.DeleteProfileButton.Text = "Delete";
this.DeleteProfileButton.UseVisualStyleBackColor = true;
this.DeleteProfileButton.Click += new System.EventHandler(this.DeleteProfileButton_Click);
//
// MachineNameTextBox
//
this.MachineNameTextBox.Location = new System.Drawing.Point(195, 253);
this.MachineNameTextBox.Name = "MachineNameTextBox";
this.MachineNameTextBox.Size = new System.Drawing.Size(311, 26);
this.MachineNameTextBox.TabIndex = 4;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(10, 256);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(119, 20);
this.label4.TabIndex = 7;
this.label4.Text = "Machine Name:";
//
// ProfileNameTextBox
//
this.ProfileNameTextBox.Location = new System.Drawing.Point(198, 39);
this.ProfileNameTextBox.Name = "ProfileNameTextBox";
this.ProfileNameTextBox.Size = new System.Drawing.Size(311, 26);
this.ProfileNameTextBox.TabIndex = 1;
//
// MachineNameLabel
//
this.MachineNameLabel.AutoSize = true;
this.MachineNameLabel.Location = new System.Drawing.Point(13, 186);
this.MachineNameLabel.Name = "MachineNameLabel";
this.MachineNameLabel.Size = new System.Drawing.Size(88, 20);
this.MachineNameLabel.TabIndex = 5;
this.MachineNameLabel.Text = "profile stuff";
//
// AddOrUpdateProfileButton
//
this.AddOrUpdateProfileButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.AddOrUpdateProfileButton.Location = new System.Drawing.Point(479, 320);
this.AddOrUpdateProfileButton.Name = "AddOrUpdateProfileButton";
this.AddOrUpdateProfileButton.Size = new System.Drawing.Size(86, 40);
this.AddOrUpdateProfileButton.TabIndex = 10;
this.AddOrUpdateProfileButton.Text = "button1";
this.AddOrUpdateProfileButton.UseVisualStyleBackColor = true;
this.AddOrUpdateProfileButton.Click += new System.EventHandler(this.AddOrUpdateProfileButton_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(13, 42);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(103, 20);
this.label1.TabIndex = 0;
this.label1.Text = "Profile Name:";
//
// SelectNewContentLocationButton
//
this.SelectNewContentLocationButton.Location = new System.Drawing.Point(512, 119);
this.SelectNewContentLocationButton.Name = "SelectNewContentLocationButton";
this.SelectNewContentLocationButton.Size = new System.Drawing.Size(50, 30);
this.SelectNewContentLocationButton.TabIndex = 3;
this.SelectNewContentLocationButton.Text = "...";
this.SelectNewContentLocationButton.UseVisualStyleBackColor = true;
this.SelectNewContentLocationButton.Click += new System.EventHandler(this.SelectNewContentLocationButton_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(13, 124);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(170, 20);
this.label2.TabIndex = 2;
this.label2.Text = "New Content Location:";
//
// NewContentLocationTextBox
//
this.NewContentLocationTextBox.Location = new System.Drawing.Point(195, 121);
this.NewContentLocationTextBox.Name = "NewContentLocationTextBox";
this.NewContentLocationTextBox.Size = new System.Drawing.Size(311, 26);
this.NewContentLocationTextBox.TabIndex = 2;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(6, 328);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(144, 20);
this.label6.TabIndex = 11;
this.label6.Text = "Folder Group Path:";
//
// FolderGroupPathTextBox
//
this.FolderGroupPathTextBox.Location = new System.Drawing.Point(163, 325);
this.FolderGroupPathTextBox.Name = "FolderGroupPathTextBox";
this.FolderGroupPathTextBox.Size = new System.Drawing.Size(311, 26);
this.FolderGroupPathTextBox.TabIndex = 6;
//
// FolderGroupPathButton
//
this.FolderGroupPathButton.Location = new System.Drawing.Point(480, 323);
this.FolderGroupPathButton.Name = "FolderGroupPathButton";
this.FolderGroupPathButton.Size = new System.Drawing.Size(50, 30);
this.FolderGroupPathButton.TabIndex = 7;
this.FolderGroupPathButton.Text = "...";
this.FolderGroupPathButton.UseVisualStyleBackColor = true;
this.FolderGroupPathButton.Click += new System.EventHandler(this.FolderGroupPathButton_Click);
//
// FolderGroupListView
//
this.FolderGroupListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
@@ -265,23 +208,24 @@
this.NameColumn.Text = "Name";
this.NameColumn.Width = 623;
//
// label5
// FolderGroupPathButton
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(6, 380);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(151, 20);
this.label5.TabIndex = 15;
this.label5.Text = "Naming Convention:";
this.FolderGroupPathButton.Location = new System.Drawing.Point(480, 323);
this.FolderGroupPathButton.Name = "FolderGroupPathButton";
this.FolderGroupPathButton.Size = new System.Drawing.Size(50, 30);
this.FolderGroupPathButton.TabIndex = 7;
this.FolderGroupPathButton.Text = "...";
this.FolderGroupPathButton.UseVisualStyleBackColor = true;
this.FolderGroupPathButton.Click += new System.EventHandler(this.FolderGroupPathButton_Click);
//
// NamingConventionComboBox
// label6
//
this.NamingConventionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.NamingConventionComboBox.FormattingEnabled = true;
this.NamingConventionComboBox.Location = new System.Drawing.Point(163, 377);
this.NamingConventionComboBox.Name = "NamingConventionComboBox";
this.NamingConventionComboBox.Size = new System.Drawing.Size(311, 28);
this.NamingConventionComboBox.TabIndex = 8;
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(6, 328);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(144, 20);
this.label6.TabIndex = 11;
this.label6.Text = "Folder Group Path:";
//
// groupBox1
//
@@ -303,41 +247,6 @@
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Profile Details";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.FolderNameTextBox);
this.groupBox2.Controls.Add(this.label7);
this.groupBox2.Controls.Add(this.NamingConventionComboBox);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Controls.Add(this.FolderGroupPathTextBox);
this.groupBox2.Controls.Add(this.InsertGroupName);
this.groupBox2.Controls.Add(this.FolderGroupListView);
this.groupBox2.Controls.Add(this.FolderGroupPathButton);
this.groupBox2.Controls.Add(this.label6);
this.groupBox2.Location = new System.Drawing.Point(620, 3);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(658, 430);
this.groupBox2.TabIndex = 18;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Folder Group Details";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(6, 276);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(104, 20);
this.label7.TabIndex = 15;
this.label7.Text = "Group Name:";
//
// FolderNameTextBox
//
this.FolderNameTextBox.Enabled = false;
this.FolderNameTextBox.Location = new System.Drawing.Point(163, 273);
this.FolderNameTextBox.Name = "FolderNameTextBox";
this.FolderNameTextBox.Size = new System.Drawing.Size(311, 26);
this.FolderNameTextBox.TabIndex = 5;
//
// label8
//
this.label8.AutoSize = true;
@@ -347,6 +256,95 @@
this.label8.TabIndex = 10;
this.label8.Text = "New content location is the default location where you will add new files to.";
//
// NewContentLocationTextBox
//
this.NewContentLocationTextBox.Location = new System.Drawing.Point(195, 121);
this.NewContentLocationTextBox.Name = "NewContentLocationTextBox";
this.NewContentLocationTextBox.Size = new System.Drawing.Size(311, 26);
this.NewContentLocationTextBox.TabIndex = 2;
//
// MachineNameTextBox
//
this.MachineNameTextBox.Location = new System.Drawing.Point(195, 253);
this.MachineNameTextBox.Name = "MachineNameTextBox";
this.MachineNameTextBox.Size = new System.Drawing.Size(311, 26);
this.MachineNameTextBox.TabIndex = 4;
//
// AddOrUpdateProfileButton
//
this.AddOrUpdateProfileButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.AddOrUpdateProfileButton.Location = new System.Drawing.Point(519, 380);
this.AddOrUpdateProfileButton.Name = "AddOrUpdateProfileButton";
this.AddOrUpdateProfileButton.Size = new System.Drawing.Size(86, 40);
this.AddOrUpdateProfileButton.TabIndex = 10;
this.AddOrUpdateProfileButton.Text = "button1";
this.AddOrUpdateProfileButton.UseVisualStyleBackColor = true;
this.AddOrUpdateProfileButton.Click += new System.EventHandler(this.AddOrUpdateProfileButton_Click);
//
// DeleteProfileButton
//
this.DeleteProfileButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.DeleteProfileButton.Location = new System.Drawing.Point(14, 380);
this.DeleteProfileButton.Name = "DeleteProfileButton";
this.DeleteProfileButton.Size = new System.Drawing.Size(75, 40);
this.DeleteProfileButton.TabIndex = 8;
this.DeleteProfileButton.TabStop = false;
this.DeleteProfileButton.Text = "Delete";
this.DeleteProfileButton.UseVisualStyleBackColor = true;
this.DeleteProfileButton.Click += new System.EventHandler(this.DeleteProfileButton_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(13, 124);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(170, 20);
this.label2.TabIndex = 2;
this.label2.Text = "New Content Location:";
//
// ProfileNameTextBox
//
this.ProfileNameTextBox.Location = new System.Drawing.Point(198, 39);
this.ProfileNameTextBox.Name = "ProfileNameTextBox";
this.ProfileNameTextBox.Size = new System.Drawing.Size(311, 26);
this.ProfileNameTextBox.TabIndex = 1;
//
// SelectNewContentLocationButton
//
this.SelectNewContentLocationButton.Location = new System.Drawing.Point(512, 119);
this.SelectNewContentLocationButton.Name = "SelectNewContentLocationButton";
this.SelectNewContentLocationButton.Size = new System.Drawing.Size(50, 30);
this.SelectNewContentLocationButton.TabIndex = 3;
this.SelectNewContentLocationButton.Text = "...";
this.SelectNewContentLocationButton.UseVisualStyleBackColor = true;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(10, 256);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(119, 20);
this.label4.TabIndex = 7;
this.label4.Text = "Machine Name:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(13, 42);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(103, 20);
this.label1.TabIndex = 0;
this.label1.Text = "Profile Name:";
//
// MachineNameLabel
//
this.MachineNameLabel.AutoSize = true;
this.MachineNameLabel.Location = new System.Drawing.Point(13, 186);
this.MachineNameLabel.Name = "MachineNameLabel";
this.MachineNameLabel.Size = new System.Drawing.Size(88, 20);
this.MachineNameLabel.TabIndex = 5;
this.MachineNameLabel.Text = "profile stuff";
//
// ProfileManager
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
@@ -364,10 +362,10 @@
this.MainPanel.ResumeLayout(false);
this.MainPanel.PerformLayout();
this.ProfileInfoPanel.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
}