Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
28602 authored and 28602 committed Sep 16, 2024
1 parent a0d1701 commit 34fad42
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions PythonCSharpProj/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions PythonCSharpProj/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ private void button1_Click(object sender, EventArgs e)
{
byte[] imageBytes = PyInterface.CallPythonMethod<byte[]>("testFunc", "TestFunc", new object[] {"111222"}, LogMsg);
pictureBox1.Image = Image.FromStream(new MemoryStream(imageBytes));
errorProvider1.SetError(button1, "ERROR!");
}

private void LogMsg(object msg)
Expand Down
3 changes: 3 additions & 0 deletions PythonCSharpProj/Form1.resx
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="errorProvider1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

0 comments on commit 34fad42

Please sign in to comment.