Exemplo n.º 1
0
 void GitHub_NewVersion(Version current, Version latest, string name, string url)
 {
     if (InvokeRequired)
     {
         Invoke(new GitHub.NewVersionDlg(GitHub_NewVersion), current, latest, name, url);
     }
     else
     {
         NewVersionForm.CreateAndShowDialog(current, latest, name, url, this);
     }
 }
Exemplo n.º 2
0
 void GitHub_NewVersion(Version current, GitHub.OnlineVersion available, Exception error)
 {
     if (InvokeRequired)
     {
         Invoke(new GitHub.NewVersionDlg(GitHub_NewVersion), current, available, error);
     }
     else
     {
         if (error != null)
         {
             MessageBox.Show(this, "Cannot check for new version, please verify http://lasergrbl.com manually.", "Software info", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
         }
         else if (available != null)
         {
             NewVersionForm.CreateAndShowDialog(current, available, this);
         }
         else
         {
             MessageBox.Show(this, "You have the most updated version!", "Software info", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
         }
     }
 }