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); } }
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!"); } }