Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Client.ServerEvents.Test
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
示例代码
Kivii.Client.ServerEvents.Test
Commits
d1b8d731
Commit
d1b8d731
authored
Jul 20, 2019
by
施晓雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test
parent
692a465b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
FrmMain.Designer.cs
FrmMain.Designer.cs
+1
-1
FrmMain.cs
FrmMain.cs
+3
-2
No files found.
FrmMain.Designer.cs
View file @
d1b8d731
...
...
@@ -218,9 +218,9 @@
//
// tbxSubscriptionId
//
this
.
tbxSubscriptionId
.
Enabled
=
false
;
this
.
tbxSubscriptionId
.
Location
=
new
System
.
Drawing
.
Point
(
194
,
27
);
this
.
tbxSubscriptionId
.
Name
=
"tbxSubscriptionId"
;
this
.
tbxSubscriptionId
.
ReadOnly
=
true
;
this
.
tbxSubscriptionId
.
Size
=
new
System
.
Drawing
.
Size
(
88
,
21
);
this
.
tbxSubscriptionId
.
TabIndex
=
2
;
//
...
...
FrmMain.cs
View file @
d1b8d731
...
...
@@ -113,9 +113,10 @@ namespace Test
Invoke
(
new
Action
(()
=>
onCommand
(
command
)));
return
;
}
if
(
command
is
ServerEventUpdate
)
var
eventUpdate
=
command
as
ServerEventUpdate
;
if
(
eventUpdate
!=
null
&&
eventUpdate
.
SubscriptionId
==
_client
.
ConnectionInfo
.
SubscriptionId
)
{
tbxChannels
.
Text
=
(
command
as
ServerEventUpdate
)
.
Channels
.
Join
(
","
);
tbxChannels
.
Text
=
eventUpdate
.
Channels
.
Join
(
","
);
}
rtbMessage
.
AppendText
(
$"
{
DateTime
.
Now
.
ToString
(
"HH:mm:ss"
)}
:
{
command
.
GetType
().
Name
}
{
command
.
Json
}{
Environment
.
NewLine
}{
Environment
.
NewLine
}
"
);
rtbMessage
.
ScrollToCaret
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment