public DownloaderForm(UpdateChecker updateChecker) : this(updateChecker.DownloadURL, updateChecker.Filename) { Proxy = updateChecker.Proxy; if (updateChecker is GitHubUpdateChecker) { AcceptHeader = "application/octet-stream"; } }
public UpdaterForm(UpdateChecker updateChecker) : this() { URL = updateChecker.UpdateInfo.DownloadURL; Proxy = updateChecker.Proxy; Filename = updateChecker.UpdateInfo.Filename; lblFilename.Text = "Filename: " + Filename; if (updateChecker is GitHubUpdateChecker) { AcceptHeader = "application/octet-stream"; } }
private void CheckingUpdate(CheckUpdate checkUpdate) { updateChecker = checkUpdate(); UpdateControls(); isBusy = false; }