private void CheckVersion(string versionString) { if (string.IsNullOrWhiteSpace(versionString)) { return; } var latest = new Version(versionString.Trim()); var current = new Version(Version); if (latest > current) { const string latestUrl = "https://github.com/hmemcpy/SnagitImgur/releases/latest"; ToasterWrapper.DisplayToaster("New SnagitImgur version available!", "Click to download...", IconPath, () => Process.Start(latestUrl)); } }
private void HandleResult(ImageInfo result) { if (settings.CopyToClipboard) { CopyToClipboard(result); } if (settings.ShowPopup) { ToasterWrapper.DisplayToaster("URL copied to clipboard!", "Open in browser...", PackageOutput.IconPath, () => Process.Start(result.Url)); } if (settings.OpenInBrowser) { Process.Start(result.Url); } }