コード例 #1
0
        private void Upgrade(object sender, EventArgs e)
        {
            if (!IsOpened)
            {
                statusLabel.Text = Resources.FileIsNotOpen;
                return;
            }

            try
            {
                var path = PrgPath;

                PRG.Upgrade(FileVersion.Current);
                statusLabel.Text = string.Format(Resources.Upgraded, path);

                upgradeMenuItem.Visible = false;
            }
            catch (Exception exception)
            {
                MessageBoxUtilities.ShowException(exception);
            }
        }
コード例 #2
0
        private void Upgrade(object sender, EventArgs e)
        {
            try
            {
                if (!IsOpened)
                {
                    statusLabel.Text = Resources.FileIsNotOpen;
                    return;
                }


                var path = PrgPath;

                PRG.Upgrade(FileVersion.Current);
                statusLabel.Text = string.Format(Resources.Upgraded, path);

                upgradeMenuItem.Visible = false;
            }
            catch (Exception ex)
            {
                ExceptionHandler.Show(ex, "Upgrading File, Exception Found!");
            }
        }