Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
        /// <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();
                }
            }
        }
Exemplo n.º 3
0
 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();
     }
 }
Exemplo n.º 4
0
 /// <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();
         }
     }
 }