コード例 #1
0
 void socket_MessageCommand(object sender, MessageCommandEventArgs e)
 {
     _presentation.ShowMessage(new MessageBoxInfo
     {
         Button = MessageBoxButton.OK,
         Caption = e.Request.Header,
         Text = e.Request.Text,
         TimeoutMs = Convert.ToInt32(e.Request.TimeoutMs ?? 0)
     });
 }
コード例 #2
0
 void _serverEvents_MessageCommand(object sender, MessageCommandEventArgs e)
 {
     _presentationManager.Window.Dispatcher.InvokeAsync(OnRemoteControlCommand, DispatcherPriority.Background);
 }