예제 #1
0
        private void btnCheckNewVersion_Click(object sender, RoutedEventArgs e)
        {
            Version latestVersion = AssembyInformation.GetLatestVersion();
            Version myVersion     = AssembyInformation.GetApplicationVersion();

            if (latestVersion != null && myVersion != null)
            {
                compareVersion(latestVersion, myVersion);
            }
            else
            {
                string compareStatus = res.LanguageContent.Message_UnableToCheckVersion;
                showNewVersionWindow(latestVersion, myVersion, compareStatus);
            }
        }
        private void checkVersion()
        {
            Version latestVersion = AssembyInformation.GetLatestVersion();
            Version myVersion     = AssembyInformation.GetApplicationVersion();

            if (latestVersion != null && myVersion != null)
            {
                this.Dispatcher.BeginInvoke(
                    new Action(
                        delegate() {
                    compareVersion(latestVersion, myVersion);
                }
                        )
                    );
            }
        }