SampleSmart
1.0.0.0
SampleSmart 사용 방법을 보여 주는 예제 프로젝트입니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
UdpPeerTestView.xaml.ViewModel.cs
이 파일의 문서화 페이지로 가기
1
using
Dreamine.MVVM.Attributes;
2
using
Dreamine.MVVM.ViewModels;
3
4
namespace
SampleSmart.Pages.PageSub.CommunicationTabs.Udp
;
5
14
public
partial class
UdpPeerTestViewModel
: ViewModelBase
15
{
24
[DreamineEvent]
25
private
UdpPeerTestViewEvent
_event
;
26
35
public
IReadOnlyList<string>
UdpProtocols
=> Event.UdpProtocols;
36
45
public
string
SelectedUdpProtocol
46
{
47
get
=> Event.SelectedUdpProtocol;
48
set
49
{
50
if
(Event.SelectedUdpProtocol == value)
51
{
52
return
;
53
}
54
55
Event.SelectedUdpProtocol = value;
56
OnPropertyChanged(nameof(
SelectedUdpProtocol
));
57
}
58
}
59
68
public
IReadOnlyList<string>
UdpTextEncodings
=> Event.UdpTextEncodings;
69
78
public
string
SelectedUdpEncoding
79
{
80
get
=> Event.SelectedUdpEncoding;
81
set
82
{
83
if
(Event.SelectedUdpEncoding == value)
84
{
85
return
;
86
}
87
88
Event.SelectedUdpEncoding = value;
89
OnPropertyChanged(nameof(
SelectedUdpEncoding
));
90
}
91
}
92
101
public
string
UdpSendText
102
{
103
get
=> Event.UdpSendText;
104
set
105
{
106
if
(Event.UdpSendText == value)
107
{
108
return
;
109
}
110
111
Event.UdpSendText = value;
112
OnPropertyChanged(nameof(
UdpSendText
));
113
}
114
}
115
124
public
string
UdpEndpointSummary
=> Event.UdpEndpointSummary;
125
134
[DreamineCommand(
"Event.StartUdpLoopback"
)]
135
private
partial
void
StartUdpLoopback
();
136
145
[DreamineCommand(
"Event.StopUdpLoopback"
)]
146
private
partial
void
StopUdpLoopback
();
147
156
[DreamineCommand(
"Event.ConnectUdpPeerA"
)]
157
private
partial
void
ConnectUdpPeerA
();
158
167
[DreamineCommand(
"Event.ConnectUdpPeerB"
)]
168
private
partial
void
ConnectUdpPeerB
();
169
178
[DreamineCommand(
"Event.DisconnectUdpPeerA"
)]
179
private
partial
void
DisconnectUdpPeerA
();
180
189
[DreamineCommand(
"Event.DisconnectUdpPeerB"
)]
190
private
partial
void
DisconnectUdpPeerB
();
191
200
[DreamineCommand(
"Event.SendUdpPeerA"
)]
201
private
partial
void
SendUdpPeerA
();
202
211
[DreamineCommand(
"Event.SendUdpPeerB"
)]
212
private
partial
void
SendUdpPeerB
();
213
230
public
UdpPeerTestViewModel
(
UdpPeerTestViewEvent
@event)
231
{
232
ArgumentNullException.ThrowIfNull(@event);
233
234
_event
= @event;
235
}
236
}
SampleSmart.Pages.PageSub.CommunicationTabs.Udp
Definition
UdpPeerTestView.xaml.cs:5
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewEvent
Definition
UdpPeerTestView.xaml.Event.cs:15
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.DisconnectUdpPeerB
partial void DisconnectUdpPeerB()
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.SelectedUdpProtocol
string SelectedUdpProtocol
Definition
UdpPeerTestView.xaml.ViewModel.cs:46
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.SendUdpPeerB
partial void SendUdpPeerB()
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.UdpProtocols
IReadOnlyList< string > UdpProtocols
Definition
UdpPeerTestView.xaml.ViewModel.cs:35
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel._event
UdpPeerTestViewEvent _event
Definition
UdpPeerTestView.xaml.ViewModel.cs:25
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.SendUdpPeerA
partial void SendUdpPeerA()
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.SelectedUdpEncoding
string SelectedUdpEncoding
Definition
UdpPeerTestView.xaml.ViewModel.cs:79
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.StartUdpLoopback
partial void StartUdpLoopback()
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.StopUdpLoopback
partial void StopUdpLoopback()
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.UdpTextEncodings
IReadOnlyList< string > UdpTextEncodings
Definition
UdpPeerTestView.xaml.ViewModel.cs:68
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.ConnectUdpPeerB
partial void ConnectUdpPeerB()
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.UdpPeerTestViewModel
UdpPeerTestViewModel(UdpPeerTestViewEvent @event)
Definition
UdpPeerTestView.xaml.ViewModel.cs:230
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.DisconnectUdpPeerA
partial void DisconnectUdpPeerA()
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.UdpSendText
string UdpSendText
Definition
UdpPeerTestView.xaml.ViewModel.cs:102
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.UdpEndpointSummary
string UdpEndpointSummary
Definition
UdpPeerTestView.xaml.ViewModel.cs:124
SampleSmart.Pages.PageSub.CommunicationTabs.Udp.UdpPeerTestViewModel.ConnectUdpPeerA
partial void ConnectUdpPeerA()
Pages
PageSub
CommunicationTabs
Udp
UdpPeerTestView.xaml.ViewModel.cs
다음에 의해 생성됨 :
1.17.0