예제 #1
0
 private void checkForUpdatesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Updater frm = new Updater();
     frm.ShowDialog();
     frm.Dispose();
 }
예제 #2
0
 private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (Program.AutoUpdate.ServerVersion != new Version(0, 0, 0, 0))
     {
         if (Program.AppVersion < Program.AutoUpdate.ServerVersion)
         {
             if (MessageBox.Show("There is an UltraSFV software update avaliable (v " + Program.AutoUpdate.ServerVersion.ToString() + " / " + Program.AutoUpdate.UpdateInfo.FileSize + ").\n\nWould you like to download it now?", "Update Avaliable", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
             {
                 Updater frm = new Updater(true);
                 frm.ShowDialog();
                 frm.Dispose();
             }
         }
     }
 }