public KryptonSparkleDownloadProgress(Sparkle sparkle, KryptonSparkleAppCastItem item, Image applicationIcon, Icon icon, bool unattended) { InitializeComponent(); if (applicationIcon != null) { pbxAppIcon.Image = applicationIcon; } if (icon != null) { Icon = icon; } // store the item _sparkle = sparkle; _item = item; //_referencedAssembly = referencedAssembly; _unattend = unattended; // init ui kbtnInstall.Visible = false; klblHeader.Text = $"Downloading: { item.AppName }, { item.Version }"; progressDownload.Maximum = 100; progressDownload.Minimum = 0; progressDownload.Step = 1; // show the right Size = new Size(Size.Width, 107); klblSecurityHint.Visible = false; }
public KryptonSparkleForm(KryptonSparkleAppCastItem item, Image image, Icon icon) { InitializeComponent(); // init ui try { NetSparkleBrowser.AllowWebBrowserDrop = false; NetSparkleBrowser.AllowNavigation = false; } catch (Exception) { } _currentItem = item; klblHeader.Text = $"A new version of { item.AppName } is available!"; klblDetails.Text = klblDetails.Text.Replace("APP", item.AppName + " " + item.Version); klblDetails.Text = klblDetails.Text.Replace("OLDVERSION", item.AppVersionInstalled); if (!string.IsNullOrEmpty(item.ReleaseNotesLink)) { NetSparkleBrowser.Navigate(item.ReleaseNotesLink); } else { RemoveReleaseNotesControls(); } if (image != null) { pbxAppIcon.Image = image; } if (icon != null) { Icon = icon; } this.TopMost = true; }