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) }); }
void _serverEvents_MessageCommand(object sender, MessageCommandEventArgs e) { _presentationManager.Window.Dispatcher.InvokeAsync(OnRemoteControlCommand, DispatcherPriority.Background); }