Skip to content

Commit 07ba199

Browse files
committed
git init
0 parents  commit 07ba199

25 files changed

+4841
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin/
2+
obj/

.vs/MetaDataStringEditor/v16/.suo

9 KB
Binary file not shown.

.vs/MetaDataStringEditor/v16/Server/sqlite3/db.lock

Whitespace-only changes.
Binary file not shown.

.vs/ProjectSettings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"CurrentProjectSetting": null
3+
}

.vs/VSWorkspaceState.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ExpandedNodes": [
3+
""
4+
],
5+
"SelectedNode": "\\MetaDataStringEditor.csproj",
6+
"PreviewInSolutionExplorer": false
7+
}

.vs/slnx.sqlite

212 KB
Binary file not shown.

App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1" />
5+
</startup>
6+
</configuration>

EditForm.Designer.cs

Lines changed: 97 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EditForm.cs

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel;
4+
using System.Data;
5+
using System.Drawing;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using System.Windows.Forms;
10+
11+
namespace MetaDataStringEditor {
12+
public partial class EditForm : Form {
13+
public EditForm() {
14+
InitializeComponent();
15+
}
16+
17+
private EditorListItem item;
18+
19+
public void ShowDialog(IWin32Window Owner, EditorListItem item) {
20+
this.item = item;
21+
if (item.NewStrBytes != null) {
22+
textBox1.Text = Encoding.UTF8.GetString(item.NewStrBytes);
23+
} else {
24+
textBox1.Text = Encoding.UTF8.GetString(item.OriginStrBytes);
25+
}
26+
ShowDialog(Owner);
27+
}
28+
29+
private void 保存_Click(object sender, EventArgs e) {
30+
Owner.Invoke(new Action(delegate {
31+
item.SetNewStr(textBox1.Text.Replace("\r", ""));
32+
}));
33+
Close();
34+
}
35+
36+
private void 放弃此次修改_Click(object sender, EventArgs e) {
37+
Close();
38+
}
39+
40+
private void 还原该串的修改_Click(object sender, EventArgs e) {
41+
Owner.Invoke(new Action(delegate {
42+
item.Discard();
43+
}));
44+
Close();
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)