/************************************************************* *************************************************************/ public async void UpdateFound(Version version, string releaseNotes) { string msg = string.Format("Version {0} is available{1}{1}{2}{1}{1}Do you want to update now?", version.ToString(2), Environment.NewLine, releaseNotes); if (MessageBox.Show(this, msg, Resources.UpdateFound, MessageBoxButtons.YesNo) == DialogResult.Yes) { cancellation = new CancellationTokenSource(); Ripp3rUpdate update = new Ripp3rUpdate(); currentTask = update.DownloadAndInstallUpdate(cancellation.Token); await currentTask; } }
private void Form1_Load(object sender, EventArgs e) { Interaction.Instance.ReportMessage(string.IsNullOrEmpty(Utilities.PublicKey) ? "Using default public key" : "Using personal public key"); // Check for updates, if enabled if (Settings.Default.CheckForUpdates) { Ripp3rUpdate.CheckForUpdate(); } DetectDriveAsync(); }
private void checkForUpdatesToolStripMenuItem_Click(object sender, EventArgs e) { Ripp3rUpdate.CheckForUpdate(true); }