/// <summary> /// This method shows the update ui and allows to perform the /// update process /// </summary> /// <param name="currentItem"></param> public void ShowUpdateNeededUI(NetSparkleAppCastItem currentItem) { // create the form NetSparkleForm frm = new NetSparkleForm(currentItem, ApplicationIcon, ApplicationWindowIcon); // configure the form frm.TopMost = true; if (HideReleaseNotes) { frm.RemoveReleaseNotesControls(); } // show it DialogResult dlgResult = frm.ShowDialog(); if (dlgResult == DialogResult.No) { // skip this version NetSparkleConfiguration config = new NetSparkleConfiguration(_AppReferenceAssembly); config.SetVersionToSkip(currentItem.Version); } else if (dlgResult == DialogResult.Yes) { // download the binaries InitDownloadAndInstallProcess(currentItem); } }
/// <summary> /// This method shows the update ui and allows to perform the /// update process /// </summary> /// <param name="currentItem"></param> public void ShowUpdateNeededUI(NetSparkleAppCastItem currentItem) { // create the form NetSparkleForm frm = new NetSparkleForm(currentItem, ApplicationIcon, ApplicationWindowIcon); // configure the form frm.TopMost = true; if (HideReleaseNotes) frm.RemoveReleaseNotesControls(); // show it DialogResult dlgResult = frm.ShowDialog(); if (dlgResult == DialogResult.No) { // skip this version NetSparkleConfiguration config = new NetSparkleConfiguration(_AppReferenceAssembly); config.SetVersionToSkip(currentItem.Version); } else if (dlgResult == DialogResult.Yes) { // download the binaries InitDownloadAndInstallProcess(currentItem); } }
void NetSparkleForm_Disposed(object sender, EventArgs e) { _instance = null; }