1- using LVGLSharp . Drawing ;
2-
31namespace WinFormsRdpDemo ;
42
53public partial class frmMain : Form
@@ -30,7 +28,7 @@ private void BuildDemoSurface()
3028
3129 var introLabel = new Label
3230 {
33- Text = "这个窗口正在通过 RdpView 运行时托管,为后续 RDP 协议实现预留 Demo 入口。 " ,
31+ Text = "This window currently runs through RdpView so the RDP path has a dedicated demo entry point. " ,
3432 Location = new Point ( 18 , 18 ) ,
3533 Size = new Size ( 580 , 42 ) ,
3634 ForeColor = new Color ( 255 , 255 , 255 ) ,
@@ -39,30 +37,30 @@ private void BuildDemoSurface()
3937 _messageInput = new TextBox
4038 {
4139 Text = "hello from WinForms over RDP" ,
42- PlaceholderText = "输入一些文字,然后点右侧按钮 " ,
40+ PlaceholderText = "Type some text and then click the button on the right. " ,
4341 Location = new Point ( 18 , 72 ) ,
4442 Size = new Size ( 420 , 36 ) ,
4543 } ;
4644
4745 var echoButton = new Button
4846 {
49- Text = "更新状态 " ,
47+ Text = "Update status " ,
5048 Location = new Point ( 456 , 72 ) ,
5149 Size = new Size ( 140 , 36 ) ,
5250 } ;
5351 echoButton . Click += EchoButton_Click ;
5452
5553 _statusLabel = new Label
5654 {
57- Text = "状态: RDP transport 已接入生命周期,协议协商仍在实现中 " ,
55+ Text = "Status: the RDP transport is wired into the lifecycle and the protocol handshake is still in progress. " ,
5856 Location = new Point ( 18 , 128 ) ,
5957 Size = new Size ( 578 , 42 ) ,
6058 ForeColor = new Color ( 255 , 255 , 255 ) ,
6159 } ;
6260
6361 var hintLabel = new Label
6462 {
65- Text = "提示:这个 Demo 现在先用于验证 RdpView 注册、窗口承载和后续远程宿主接线点。 " ,
63+ Text = "Tip: this demo currently validates RdpView registration, window hosting, and the later remote-host integration path. " ,
6664 Location = new Point ( 18 , 178 ) ,
6765 Size = new Size ( 578 , 52 ) ,
6866 ForeColor = new Color ( 220 , 220 , 220 ) ,
@@ -85,6 +83,6 @@ private void EchoButton_Click(object? sender, EventArgs e)
8583 var value = string . IsNullOrWhiteSpace ( _messageInput . Text )
8684 ? "<empty>"
8785 : _messageInput . Text ;
88- _statusLabel . Text = $ "状态:最近一次本地交互 -> { value } ";
86+ _statusLabel . Text = $ "Status: latest local interaction -> { value } ";
8987 }
9088}
0 commit comments