From 070c50ff851e98e31c1aa00ada3eb65dc1e69d4b Mon Sep 17 00:00:00 2001
From: miku-666 <74728189+NessieHax@users.noreply.github.com>
Date: Sun, 16 Jul 2023 19:50:38 +0200
Subject: [PATCH] PckEditor - Fixed Edit button not having a Click method
---
PCK-Studio/Controls/PckEditor.Designer.cs | 1 +
PCK-Studio/Controls/PckEditor.cs | 5 +++++
PCK-Studio/Controls/PckEditor.resx | 10 +++++-----
3 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/PCK-Studio/Controls/PckEditor.Designer.cs b/PCK-Studio/Controls/PckEditor.Designer.cs
index feb7abf0..c8fe1555 100644
--- a/PCK-Studio/Controls/PckEditor.Designer.cs
+++ b/PCK-Studio/Controls/PckEditor.Designer.cs
@@ -230,6 +230,7 @@
this.buttonEdit.Name = "buttonEdit";
this.buttonEdit.Theme = MetroFramework.MetroThemeStyle.Dark;
this.buttonEdit.UseSelectable = true;
+ this.buttonEdit.Click += new System.EventHandler(this.buttonEdit_Click);
//
// metroLabel1
//
diff --git a/PCK-Studio/Controls/PckEditor.cs b/PCK-Studio/Controls/PckEditor.cs
index edd22280..c34b9307 100644
--- a/PCK-Studio/Controls/PckEditor.cs
+++ b/PCK-Studio/Controls/PckEditor.cs
@@ -1660,5 +1660,10 @@ namespace PckStudio.Controls
{
BuildMainTreeView();
}
+
+ private void buttonEdit_Click(object sender, EventArgs e)
+ {
+ treeViewMain_DoubleClick(sender, e);
+ }
}
}
\ No newline at end of file
diff --git a/PCK-Studio/Controls/PckEditor.resx b/PCK-Studio/Controls/PckEditor.resx
index 3e4790fe..e1a790c7 100644
--- a/PCK-Studio/Controls/PckEditor.resx
+++ b/PCK-Studio/Controls/PckEditor.resx
@@ -891,7 +891,7 @@
True
- 204, 171
+ 204, 168
0, 0
@@ -936,7 +936,7 @@
False
- 199, 134
+ 215, 138
146, 20
@@ -981,7 +981,7 @@
False
- 199, 166
+ 215, 170
146, 20
@@ -1005,7 +1005,7 @@
Bottom, Right
- 199, 192
+ 215, 196
146, 33
@@ -1038,7 +1038,7 @@
True
- 266, 64
+ 266, 61
0, 0