示例#1
0
        public static void TriggerUpdateWindow(Version y, Version x, String newestversion, bool forced, bool startup, bool isitfromthechangelogwindow)
        {
            String ReturnVal = "0.0.0.0";

            if (forced && startup)
            {
                CheckForTLS12ThenUpdate(newestversion, UpdateSystem.NORMAL);
            }
            else
            {
                UpdateYesNo upd = new UpdateYesNo(x, y, true, startup, isitfromthechangelogwindow);

                if (startup)
                {
                    upd.StartPosition = FormStartPosition.CenterScreen;
                }
                else
                {
                    upd.StartPosition = FormStartPosition.CenterParent;
                }

                DialogResult dialogResult = upd.ShowDialog();
                ReturnVal = upd.ReturnVal;
                upd.Dispose();

                if (dialogResult == DialogResult.Yes)
                {
                    CheckForTLS12ThenUpdate(ReturnVal, UpdateSystem.NORMAL);
                }
            }
        }
示例#2
0
 public static void NoUpdates(bool startup, bool internetok)
 {
     if (!startup)
     {
         UpdateYesNo upd = new UpdateYesNo(null, null, internetok, startup, false);
         upd.StartPosition = FormStartPosition.CenterParent;
         upd.ShowDialog();
         upd.Dispose();
     }
 }