From ff11cebf5672eb03afd20d24351f6d13f43d15ad Mon Sep 17 00:00:00 2001 From: MattNL Date: Fri, 16 Jun 2023 08:59:43 -0400 Subject: [PATCH] Added open file tool to LOC Editor --- PCK-Studio/Forms/Editor/LOCEditor.Designer.cs | 329 +++++++++--------- PCK-Studio/Forms/Editor/LOCEditor.cs | 32 +- PCK-Studio/Forms/Editor/LOCEditor.resx | 152 +++++--- 3 files changed, 307 insertions(+), 206 deletions(-) diff --git a/PCK-Studio/Forms/Editor/LOCEditor.Designer.cs b/PCK-Studio/Forms/Editor/LOCEditor.Designer.cs index 0b1f3d13..ed2f55d7 100644 --- a/PCK-Studio/Forms/Editor/LOCEditor.Designer.cs +++ b/PCK-Studio/Forms/Editor/LOCEditor.Designer.cs @@ -28,170 +28,180 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LOCEditor)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.addDisplayIDToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.deleteDisplayIDToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.GridContextMenu = new MetroFramework.Controls.MetroContextMenu(this.components); - this.addLanguageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.removeLanguageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.menuStrip = new System.Windows.Forms.MenuStrip(); - this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.locSort = new System.Windows.Forms.TableLayoutPanel(); - this.buttonReplaceAll = new System.Windows.Forms.Button(); - this.dataGridViewLocEntryData = new System.Windows.Forms.DataGridView(); - this.textBoxReplaceAll = new System.Windows.Forms.TextBox(); - this.treeViewLocKeys = new System.Windows.Forms.TreeView(); - this.contextMenuStrip1.SuspendLayout(); - this.GridContextMenu.SuspendLayout(); - this.menuStrip.SuspendLayout(); - this.locSort.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dataGridViewLocEntryData)).BeginInit(); - this.SuspendLayout(); - // - // contextMenuStrip1 - // - this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LOCEditor)); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.addDisplayIDToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.deleteDisplayIDToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.GridContextMenu = new MetroFramework.Controls.MetroContextMenu(this.components); + this.addLanguageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.removeLanguageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.menuStrip = new System.Windows.Forms.MenuStrip(); + this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.locSort = new System.Windows.Forms.TableLayoutPanel(); + this.buttonReplaceAll = new System.Windows.Forms.Button(); + this.dataGridViewLocEntryData = new System.Windows.Forms.DataGridView(); + this.textBoxReplaceAll = new System.Windows.Forms.TextBox(); + this.treeViewLocKeys = new System.Windows.Forms.TreeView(); + this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.contextMenuStrip1.SuspendLayout(); + this.GridContextMenu.SuspendLayout(); + this.menuStrip.SuspendLayout(); + this.locSort.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewLocEntryData)).BeginInit(); + this.SuspendLayout(); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.addDisplayIDToolStripMenuItem, this.deleteDisplayIDToolStripMenuItem}); - this.contextMenuStrip1.Name = "contextMenuStrip1"; - resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1"); - // - // addDisplayIDToolStripMenuItem - // - this.addDisplayIDToolStripMenuItem.Name = "addDisplayIDToolStripMenuItem"; - resources.ApplyResources(this.addDisplayIDToolStripMenuItem, "addDisplayIDToolStripMenuItem"); - this.addDisplayIDToolStripMenuItem.Click += new System.EventHandler(this.addDisplayIDToolStripMenuItem_Click); - // - // deleteDisplayIDToolStripMenuItem - // - this.deleteDisplayIDToolStripMenuItem.Name = "deleteDisplayIDToolStripMenuItem"; - resources.ApplyResources(this.deleteDisplayIDToolStripMenuItem, "deleteDisplayIDToolStripMenuItem"); - this.deleteDisplayIDToolStripMenuItem.Click += new System.EventHandler(this.deleteDisplayIDToolStripMenuItem_Click); - // - // GridContextMenu - // - this.GridContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.contextMenuStrip1.Name = "contextMenuStrip1"; + resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1"); + // + // addDisplayIDToolStripMenuItem + // + this.addDisplayIDToolStripMenuItem.Name = "addDisplayIDToolStripMenuItem"; + resources.ApplyResources(this.addDisplayIDToolStripMenuItem, "addDisplayIDToolStripMenuItem"); + this.addDisplayIDToolStripMenuItem.Click += new System.EventHandler(this.addDisplayIDToolStripMenuItem_Click); + // + // deleteDisplayIDToolStripMenuItem + // + this.deleteDisplayIDToolStripMenuItem.Name = "deleteDisplayIDToolStripMenuItem"; + resources.ApplyResources(this.deleteDisplayIDToolStripMenuItem, "deleteDisplayIDToolStripMenuItem"); + this.deleteDisplayIDToolStripMenuItem.Click += new System.EventHandler(this.deleteDisplayIDToolStripMenuItem_Click); + // + // GridContextMenu + // + this.GridContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.addLanguageToolStripMenuItem, this.removeLanguageToolStripMenuItem}); - this.GridContextMenu.Name = "GridContextMenu"; - resources.ApplyResources(this.GridContextMenu, "GridContextMenu"); - this.GridContextMenu.Theme = MetroFramework.MetroThemeStyle.Dark; - // - // addLanguageToolStripMenuItem - // - this.addLanguageToolStripMenuItem.Name = "addLanguageToolStripMenuItem"; - resources.ApplyResources(this.addLanguageToolStripMenuItem, "addLanguageToolStripMenuItem"); - this.addLanguageToolStripMenuItem.Click += new System.EventHandler(this.addLanguageToolStripMenuItem_Click); - // - // removeLanguageToolStripMenuItem - // - this.removeLanguageToolStripMenuItem.Name = "removeLanguageToolStripMenuItem"; - resources.ApplyResources(this.removeLanguageToolStripMenuItem, "removeLanguageToolStripMenuItem"); - // - // menuStrip - // - this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(13)))), ((int)(((byte)(13))))); - this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.GridContextMenu.Name = "GridContextMenu"; + resources.ApplyResources(this.GridContextMenu, "GridContextMenu"); + this.GridContextMenu.Theme = MetroFramework.MetroThemeStyle.Dark; + // + // addLanguageToolStripMenuItem + // + this.addLanguageToolStripMenuItem.Name = "addLanguageToolStripMenuItem"; + resources.ApplyResources(this.addLanguageToolStripMenuItem, "addLanguageToolStripMenuItem"); + this.addLanguageToolStripMenuItem.Click += new System.EventHandler(this.addLanguageToolStripMenuItem_Click); + // + // removeLanguageToolStripMenuItem + // + this.removeLanguageToolStripMenuItem.Name = "removeLanguageToolStripMenuItem"; + resources.ApplyResources(this.removeLanguageToolStripMenuItem, "removeLanguageToolStripMenuItem"); + // + // menuStrip + // + this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(13)))), ((int)(((byte)(13))))); + this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem}); - resources.ApplyResources(this.menuStrip, "menuStrip"); - this.menuStrip.Name = "menuStrip"; - // - // fileToolStripMenuItem - // - this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + resources.ApplyResources(this.menuStrip, "menuStrip"); + this.menuStrip.Name = "menuStrip"; + // + // fileToolStripMenuItem + // + this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.openToolStripMenuItem, this.saveToolStripMenuItem}); - this.fileToolStripMenuItem.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; - resources.ApplyResources(this.fileToolStripMenuItem, "fileToolStripMenuItem"); - // - // saveToolStripMenuItem - // - this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; - resources.ApplyResources(this.saveToolStripMenuItem, "saveToolStripMenuItem"); - this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click); - // - // locSort - // - this.locSort.AccessibleRole = System.Windows.Forms.AccessibleRole.Table; - resources.ApplyResources(this.locSort, "locSort"); - this.locSort.Controls.Add(this.buttonReplaceAll, 2, 0); - this.locSort.Controls.Add(this.dataGridViewLocEntryData, 1, 1); - this.locSort.Controls.Add(this.textBoxReplaceAll, 1, 0); - this.locSort.Controls.Add(this.treeViewLocKeys, 0, 0); - this.locSort.Name = "locSort"; - // - // buttonReplaceAll - // - resources.ApplyResources(this.buttonReplaceAll, "buttonReplaceAll"); - this.buttonReplaceAll.ForeColor = System.Drawing.Color.White; - this.buttonReplaceAll.Name = "buttonReplaceAll"; - this.buttonReplaceAll.UseVisualStyleBackColor = true; - this.buttonReplaceAll.Click += new System.EventHandler(this.buttonReplaceAll_Click); - // - // dataGridViewLocEntryData - // - this.dataGridViewLocEntryData.AllowUserToAddRows = false; - this.dataGridViewLocEntryData.AllowUserToDeleteRows = false; - this.dataGridViewLocEntryData.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(13)))), ((int)(((byte)(13))))); - this.dataGridViewLocEntryData.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewLocEntryData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; - this.dataGridViewLocEntryData.ColumnHeadersVisible = false; - this.locSort.SetColumnSpan(this.dataGridViewLocEntryData, 2); - this.dataGridViewLocEntryData.ContextMenuStrip = this.GridContextMenu; - resources.ApplyResources(this.dataGridViewLocEntryData, "dataGridViewLocEntryData"); - this.dataGridViewLocEntryData.Name = "dataGridViewLocEntryData"; - this.dataGridViewLocEntryData.RowHeadersVisible = false; - this.dataGridViewLocEntryData.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit); - // - // textBoxReplaceAll - // - resources.ApplyResources(this.textBoxReplaceAll, "textBoxReplaceAll"); - this.textBoxReplaceAll.Name = "textBoxReplaceAll"; - // - // treeViewLocKeys - // - this.treeViewLocKeys.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(13)))), ((int)(((byte)(13))))); - this.treeViewLocKeys.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.treeViewLocKeys.ContextMenuStrip = this.contextMenuStrip1; - resources.ApplyResources(this.treeViewLocKeys, "treeViewLocKeys"); - this.treeViewLocKeys.ForeColor = System.Drawing.SystemColors.MenuBar; - this.treeViewLocKeys.LabelEdit = true; - this.treeViewLocKeys.Name = "treeViewLocKeys"; - this.locSort.SetRowSpan(this.treeViewLocKeys, 2); - this.treeViewLocKeys.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewLocKeys_AfterSelect); - this.treeViewLocKeys.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView1_KeyDown); - // - // LOCEditor - // - resources.ApplyResources(this, "$this"); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.menuStrip); - this.Controls.Add(this.locSort); - this.Name = "LOCEditor"; - this.Style = MetroFramework.MetroColorStyle.Silver; - this.Theme = MetroFramework.MetroThemeStyle.Dark; - this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.LOCEditor_FormClosing); - this.Load += new System.EventHandler(this.LOCEditor_Load); - this.Resize += new System.EventHandler(this.LOCEditor_Resize); - this.contextMenuStrip1.ResumeLayout(false); - this.GridContextMenu.ResumeLayout(false); - this.menuStrip.ResumeLayout(false); - this.menuStrip.PerformLayout(); - this.locSort.ResumeLayout(false); - this.locSort.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dataGridViewLocEntryData)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); + this.fileToolStripMenuItem.ForeColor = System.Drawing.SystemColors.ButtonHighlight; + this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; + resources.ApplyResources(this.fileToolStripMenuItem, "fileToolStripMenuItem"); + // + // saveToolStripMenuItem + // + this.saveToolStripMenuItem.Image = global::PckStudio.Properties.Resources.SaveIcon; + this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; + resources.ApplyResources(this.saveToolStripMenuItem, "saveToolStripMenuItem"); + this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click); + // + // locSort + // + this.locSort.AccessibleRole = System.Windows.Forms.AccessibleRole.Table; + resources.ApplyResources(this.locSort, "locSort"); + this.locSort.Controls.Add(this.buttonReplaceAll, 2, 0); + this.locSort.Controls.Add(this.dataGridViewLocEntryData, 1, 1); + this.locSort.Controls.Add(this.textBoxReplaceAll, 1, 0); + this.locSort.Controls.Add(this.treeViewLocKeys, 0, 0); + this.locSort.Name = "locSort"; + // + // buttonReplaceAll + // + resources.ApplyResources(this.buttonReplaceAll, "buttonReplaceAll"); + this.buttonReplaceAll.ForeColor = System.Drawing.Color.White; + this.buttonReplaceAll.Name = "buttonReplaceAll"; + this.buttonReplaceAll.UseVisualStyleBackColor = true; + this.buttonReplaceAll.Click += new System.EventHandler(this.buttonReplaceAll_Click); + // + // dataGridViewLocEntryData + // + this.dataGridViewLocEntryData.AllowUserToAddRows = false; + this.dataGridViewLocEntryData.AllowUserToDeleteRows = false; + this.dataGridViewLocEntryData.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(13)))), ((int)(((byte)(13))))); + this.dataGridViewLocEntryData.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewLocEntryData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.dataGridViewLocEntryData.ColumnHeadersVisible = false; + this.locSort.SetColumnSpan(this.dataGridViewLocEntryData, 2); + this.dataGridViewLocEntryData.ContextMenuStrip = this.GridContextMenu; + resources.ApplyResources(this.dataGridViewLocEntryData, "dataGridViewLocEntryData"); + this.dataGridViewLocEntryData.Name = "dataGridViewLocEntryData"; + this.dataGridViewLocEntryData.RowHeadersVisible = false; + this.dataGridViewLocEntryData.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit); + // + // textBoxReplaceAll + // + resources.ApplyResources(this.textBoxReplaceAll, "textBoxReplaceAll"); + this.textBoxReplaceAll.Name = "textBoxReplaceAll"; + // + // treeViewLocKeys + // + this.treeViewLocKeys.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(13)))), ((int)(((byte)(13))))); + this.treeViewLocKeys.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.treeViewLocKeys.ContextMenuStrip = this.contextMenuStrip1; + resources.ApplyResources(this.treeViewLocKeys, "treeViewLocKeys"); + this.treeViewLocKeys.ForeColor = System.Drawing.SystemColors.MenuBar; + this.treeViewLocKeys.LabelEdit = true; + this.treeViewLocKeys.Name = "treeViewLocKeys"; + this.locSort.SetRowSpan(this.treeViewLocKeys, 2); + this.treeViewLocKeys.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewLocKeys_AfterSelect); + this.treeViewLocKeys.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView1_KeyDown); + // + // openToolStripMenuItem + // + this.openToolStripMenuItem.Image = global::PckStudio.Properties.Resources.file_import; + this.openToolStripMenuItem.Name = "openToolStripMenuItem"; + resources.ApplyResources(this.openToolStripMenuItem, "openToolStripMenuItem"); + this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click); + // + // LOCEditor + // + resources.ApplyResources(this, "$this"); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.menuStrip); + this.Controls.Add(this.locSort); + this.Name = "LOCEditor"; + this.Style = MetroFramework.MetroColorStyle.Silver; + this.Theme = MetroFramework.MetroThemeStyle.Dark; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.LOCEditor_FormClosing); + this.Load += new System.EventHandler(this.LOCEditor_Load); + this.Resize += new System.EventHandler(this.LOCEditor_Resize); + this.contextMenuStrip1.ResumeLayout(false); + this.GridContextMenu.ResumeLayout(false); + this.menuStrip.ResumeLayout(false); + this.menuStrip.PerformLayout(); + this.locSort.ResumeLayout(false); + this.locSort.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewLocEntryData)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); } @@ -211,5 +221,6 @@ private System.Windows.Forms.MenuStrip menuStrip; private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; - } + private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem; + } } \ No newline at end of file diff --git a/PCK-Studio/Forms/Editor/LOCEditor.cs b/PCK-Studio/Forms/Editor/LOCEditor.cs index f6d2c20f..f825c99d 100644 --- a/PCK-Studio/Forms/Editor/LOCEditor.cs +++ b/PCK-Studio/Forms/Editor/LOCEditor.cs @@ -160,5 +160,35 @@ namespace PckStudio.Forms.Editor saveToolStripMenuItem_Click(sender, EventArgs.Empty); } } - } + + private void openToolStripMenuItem_Click(object sender, EventArgs e) + { + using (var ofd = new OpenFileDialog()) + { + ofd.CheckFileExists = true; + ofd.Multiselect = false; + ofd.Filter = "LOC (Minecraft Localization File)|*.loc"; + if (ofd.ShowDialog() == DialogResult.OK) + { + try + { + var reader = new LOCFileReader(); + currentLoc = reader.FromFile(ofd.FileName); + + treeViewLocKeys.Nodes.Clear(); + foreach (string locKey in currentLoc.LocKeys.Keys) + treeViewLocKeys.Nodes.Add(locKey); + } + catch (Exception ex) + { + MessageBox.Show(this, $"Failed to read the selected file\nError: {ex.Message}", "Failed to read materials file"); + } + } + else if (_file is null) + { + Close(); + } + } + } + } } diff --git a/PCK-Studio/Forms/Editor/LOCEditor.resx b/PCK-Studio/Forms/Editor/LOCEditor.resx index 7db601e5..37cbcf73 100644 --- a/PCK-Studio/Forms/Editor/LOCEditor.resx +++ b/PCK-Studio/Forms/Editor/LOCEditor.resx @@ -121,6 +121,15 @@ 17, 17 + + 163, 48 + + + contextMenuStrip1 + + + System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 162, 22 @@ -133,18 +142,18 @@ Delete Display ID - - 163, 48 - - - contextMenuStrip1 - - - System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - 172, 17 + + 173, 48 + + + GridContextMenu + + + MetroFramework.Controls.MetroContextMenu, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a + 172, 22 @@ -157,20 +166,17 @@ Remove Language - - 173, 48 - - - GridContextMenu - - - MetroFramework.Controls.MetroContextMenu, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a - 321, 17 + + 180, 22 + + + Open + - 98, 22 + 180, 22 Save @@ -206,7 +212,82 @@ 3 + + buttonReplaceAll + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + locSort + + + 0 + + + dataGridViewLocEntryData + + + System.Windows.Forms.DataGridView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + locSort + + + 1 + + + textBoxReplaceAll + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + locSort + + + 2 + + + treeViewLocKeys + + + System.Windows.Forms.TreeView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + locSort + + + 3 + + + 20, 87 + + + 2 + + + 860, 560 + + + 3 + + + locSort + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 3 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="buttonReplaceAll" Row="0" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="dataGridViewLocEntryData" Row="1" RowSpan="1" Column="1" ColumnSpan="2" /><Control Name="textBoxReplaceAll" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="treeViewLocKeys" Row="0" RowSpan="2" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Absolute,300,Percent,100,AutoSize,0" /><Rows Styles="AutoSize,0,Percent,100,Absolute,20" /></TableLayoutSettings> + Flat @@ -309,33 +390,6 @@ 3 - - 20, 87 - - - 2 - - - 860, 560 - - - 3 - - - locSort - - - System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - 3 - - - <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="buttonReplaceAll" Row="0" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="dataGridViewLocEntryData" Row="1" RowSpan="1" Column="1" ColumnSpan="2" /><Control Name="textBoxReplaceAll" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="treeViewLocKeys" Row="0" RowSpan="2" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Absolute,300,Percent,100,AutoSize,0" /><Rows Styles="AutoSize,0,Percent,100,Absolute,20" /></TableLayoutSettings> - True @@ -2115,6 +2169,12 @@ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + openToolStripMenuItem + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + LOCEditor