Beispiel #1
0
        private static void WorkerMethod()
        {
            try {
                Version curVersion = AppHost.GetAppVersion();
                if (curVersion == null)
                {
                    return;
                }

                string  url;
                Version newVersion = GetLastVersion(out url);
                if (newVersion == null)
                {
                    return;
                }

                if (curVersion.CompareTo(newVersion) < 0)
                {
                    #if !CI_MODE
                    string question = LangMan.LS(LSID.LSID_UpdateToLatestVersion, curVersion, newVersion);
                    if (AppHost.StdDialogs.ShowQuestionYN(question))
                    {
                        Process.Start(url);
                    }
                    #endif
                }
            } catch (Exception ex) {
                Logger.WriteError("UpdateMan.WorkerMethod()", ex);
            }
        }
Beispiel #2
0
        private static void WorkerMethod()
        {
            try {
                Version curVersion = AppHost.GetAppVersion();

                string  url;
                Version newVersion = GetLastVersion(out url);

                if (curVersion.CompareTo(newVersion) < 0)
                {
                    string question = "You've got version {0} of GEDKeeper. Would you like to update to the latest version {1}?";

                    #if !CI_MODE
                    if (AppHost.StdDialogs.ShowQuestionYN(string.Format(question, curVersion, newVersion)))
                    {
                        Process.Start(url);
                    }
                    #endif
                }
            } catch (Exception ex) {
                Logger.WriteError("UpdateMan.WorkerMethod()", ex);
            }
        }