private void DoWorkGetClipboard(object sender, DoWorkEventArgs eventArgs) { try { eventArgs.Result = _connection.GetClipboard(); } catch (Exception ioe) { Connected = false; Window.Dispatcher.Invoke(new Action(() => { Window.AuthFailed(this); })); } }