Skip to content

Commit 8ca577f

Browse files
committed
完善UI。
1 parent 4c2c784 commit 8ca577f

15 files changed

+283
-10567
lines changed

QpTestClient/Controls/CommandInfoControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public CommandInfoControl(QpCommandInfo item)
1313
InitializeComponent();
1414

1515
StringBuilder sb = new StringBuilder();
16-
sb.AppendLine($"名称{item.Name}");
16+
sb.AppendLine($"命令名称{item.Name}");
1717
sb.AppendLine($"请求类名称:{item.RequestTypeName}");
1818
sb.AppendLine($"响应类名称:{item.ResponseTypeName}");
1919
if (!string.IsNullOrEmpty(item.Description))

QpTestClient/Controls/NoticeInfoControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public NoticeInfoControl(QpNoticeInfo item)
1616
InitializeComponent();
1717

1818
StringBuilder sb = new StringBuilder();
19-
sb.AppendLine($"名称{item.Name}");
19+
sb.AppendLine($"通知名称{item.Name}");
2020
sb.AppendLine($"类名称:{item.NoticeTypeName}");
2121
if (!string.IsNullOrEmpty(item.Description))
2222
{

QpTestClient/Forms/CommandTestForm.Designer.cs

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

QpTestClient/Forms/CommandTestForm.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Quick.Protocol;
22
using Quick.Protocol.Utils;
33
using System;
4+
using System.Drawing;
45
using System.Windows.Forms;
56

67
namespace QpTestClient.Forms
@@ -14,6 +15,10 @@ public CommandTestForm(ConnectionContext connectionContext, QpCommandInfo qpComm
1415
this.connectionContext = connectionContext;
1516

1617
InitializeComponent();
18+
var currentAssembly = this.GetType().Assembly;
19+
//窗体图标
20+
using (var stream = currentAssembly.GetManifestResourceStream($"{nameof(QpTestClient)}.Images.connection.ico"))
21+
Icon = new Icon(stream);
1722
if (qpCommandInfo == null)
1823
{
1924
txtFormTitle.Text = $"{Text} - {connectionContext.ConnectionInfo.Name}";

QpTestClient/Forms/CommandTestForm.resx

Lines changed: 61 additions & 3508 deletions
Large diffs are not rendered by default.

QpTestClient/Forms/GenerateConnectionUrl.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ public GenerateConnectionUrl(ConnectionContext connectionContext)
1717
{
1818
this.connectionContext=connectionContext;
1919
InitializeComponent();
20+
var currentAssembly = this.GetType().Assembly;
21+
//窗体图标
22+
using (var stream = currentAssembly.GetManifestResourceStream($"{nameof(QpTestClient)}.Images.connection.ico"))
23+
Icon = new Icon(stream);
2024
}
2125

2226
private void GenerateConnectionUrl_Load(object sender, EventArgs e)

QpTestClient/Forms/HeartbeatRecvForm.Designer.cs

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

QpTestClient/Forms/HeartbeatRecvForm.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ public HeartbeatRecvForm(ConnectionContext connectionContext)
2020
{
2121
this.connectionContext = connectionContext;
2222
InitializeComponent();
23+
var currentAssembly = this.GetType().Assembly;
24+
//窗体图标
25+
using (var stream = currentAssembly.GetManifestResourceStream($"{nameof(QpTestClient)}.Images.connection.ico"))
26+
Icon = new Icon(stream);
2327
txtFormTitle.Text = $"{Text} - {connectionContext.ConnectionInfo.Name}";
2428
}
2529

QpTestClient/Forms/HeartbeatRecvForm.resx

Lines changed: 61 additions & 3508 deletions
Large diffs are not rendered by default.

QpTestClient/Forms/NoticeRecvForm.Designer.cs

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

0 commit comments

Comments
 (0)