public void OnUpgrade(object sender, EventArgs e) { Version version = new Version(Application.ProductVersion); if (version.Revision == 0) { explorerPresenter.ShowMessage("You are on a custom build. You cannot upgrade.", DataStore.ErrorLevel.Error); } else { UpgradeForm form = new UpgradeForm(explorerPresenter); form.Show(); } }
/// <summary> /// Upgrade Apsim Next Generation /// </summary> /// <param name="sender">Sender object</param> /// <param name="e">Event arguments</param> private void OnUpgrade(object sender, EventArgs e) { // Get the version of the current assembly. Version version = Assembly.GetExecutingAssembly().GetName().Version; if (version.Revision == 0) { view.ShowMessage("You are on a custom build. You cannot upgrade.", DataStore.ErrorLevel.Error); } else { if (AllowClose()) { UpgradeForm form = new UpgradeForm(view); form.Show(); } } }
public void OnUpgrade(object sender, EventArgs e) { Version version = new Version(Application.ProductVersion); if (version.Revision == 0) explorerPresenter.ShowMessage("You are on a custom build. You cannot upgrade.", DataStore.ErrorLevel.Error); else { UpgradeForm form = new UpgradeForm(explorerPresenter); form.Show(); } }
/// <summary> /// Upgrade Apsim Next Generation /// </summary> /// <param name="sender">Sender object</param> /// <param name="e">Event arguments</param> private void OnUpgrade(object sender, EventArgs e) { // Get the version of the current assembly. Version version = Assembly.GetExecutingAssembly().GetName().Version; if (version.Revision == 0) view.ShowMessage("You are on a custom build. You cannot upgrade.", DataStore.ErrorLevel.Error); else { if (AllowClose()) { UpgradeForm form = new UpgradeForm(view); form.Show(); } } }