Example #1
0
 public Link()
 {
     RequestNavigate += (sender, e) =>
     {
         UrlLauncher.Open(NavigateUri.AbsoluteUri);
     };
 }
 public void Handle(InstallCancelledEvent message)
 {
     // Show the feedback page on every cancelled install
     if (HasFeebackBeenReportedForThisMachine())
     {
         return;
     }
     RecordInstallationFeeback();
     UrlLauncher.Open(cancelledUrl);
 }
 public void Handle(NoInstallAttemptedEvent message)
 {
     // Show the feedback page on first run if they close without installing stuff
     if (HasFeebackBeenReportedForThisMachine())
     {
         return;
     }
     RecordInstallationFeeback();
     UrlLauncher.Open(cancelledUrl);
 }
    public void Handle(InstallSucceededEvent message)
    {
        if (HasFeebackBeenReportedForThisMachine())
        {
            LogTo.Information("Install feedback has already been reported no new browser will be popped");
            return;
        }
        LogTo.Information($"Install successfull, new user: {isNewUserAtStartup}");
        var isNew     = isNewUserAtStartup.ToString().ToLowerInvariant();
        var installed = string.Join(";", message.InstalledItems);
        var url       = $"https://particular.net/thank-you-for-installing-the-particular-service-platform?new_user={isNew}&installed={installed}&nuget={NugetFlag()}";

        RecordInstallationFeeback();
        UrlLauncher.Open(url);
    }