private void CheckUpdate() { if (!UpdateMessageBox.DontShow && !UpdateMessageBox.IsOpen) { UpdateChecker updateChecker = CreateUpdateChecker(); updateChecker.CheckUpdate(); if (UpdateMessageBox.Start(updateChecker, firstUpdateCheck) != DialogResult.Yes) { TimeSpan interval = TimeSpan.FromHours(24); updateTimer.Change(interval, interval); } firstUpdateCheck = false; } }
private void CheckUpdate() { UpdateChecker updateChecker = AboutBox.CheckUpdate(); UpdateMessageBox.Start(updateChecker); }