SampleSmart 1.0.0.0
SampleSmart 사용 방법을 보여 주는 예제 프로젝트입니다.
로딩중...
검색중...
일치하는것 없음
UdpPeerTestView.xaml.ViewModel.cs
이 파일의 문서화 페이지로 가기
1using Dreamine.MVVM.Attributes;
2using Dreamine.MVVM.ViewModels;
3
5
14public partial class UdpPeerTestViewModel : ViewModelBase
15{
24 [DreamineEvent]
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
231 {
232 ArgumentNullException.ThrowIfNull(@event);
233
234 _event = @event;
235 }
236}