public ClipboardGrabberWorker(ClipboardGrabber owner) { this.owner = owner; }
private void handle() { ClipboardGrabber grabber = new ClipboardGrabber(); WebServiceSender sender = new WebServiceSender(); string link = grabber.grab(); SendResult sendResult = sender.send(link, config); if (sendResult == SendResult.SUCCESS) notifySuccess(); else if (sendResult == SendResult.FAILURE) notifyFailure(); else if (sendResult == SendResult.NOT_CONFIGURED) notifyNotConfigured(); }