/// <summary> /// Checks if the user has to rate this release, it shows the <see cref="RateReleaseWindow"/> if true. /// </summary> private void CheckIfUserHasToRateThisRelease() { if (RateReleaseHelper.IsReleaseRatePending()) { var rateReleaseWindow = new RateReleaseWindow(); rateReleaseWindow.ShowDialog(); } }
/// <summary> /// Executed when the user clicks the Already did button. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAlreadyDid_Click(object sender, EventArgs e) { try { RateReleaseHelper.MarkReleaseAsRated(); this.Close(); } catch (Exception ex) { MessageHelper.ShowExceptionMessage(ex); } }
/// <summary> /// Executed when the user clicks the Rate button. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnRate_Click(object sender, EventArgs e) { string rateReleaseURL = string.Format(Resources.RateReleaseURL, AssemblyHelper.VersionInfo.DownloadID); try { RateReleaseHelper.MarkReleaseAsRated(); // Navigate to rate release URL System.Diagnostics.Process.Start(rateReleaseURL); this.Close(); } catch (Exception ex) { MessageHelper.ShowErrorMessage(ex.Message + Environment.NewLine + rateReleaseURL); } }