Exemplo n.º 1
0
        public void CheckForUpdate(object sender, MouseEventArgs e)
        {
            if (!updateInitiated)
            {
				updateStatusText.Text = new LocalizedString("Checking for updates...").Translated;
                checkUpdateLink.Visible = false;

                updateInitiated = true;
                RequestLatestVersion request = new RequestLatestVersion();
                request.RequestSucceeded += new EventHandler(onVersionRequestSucceeded);
                request.RequestFailed += new EventHandler(onVersionRequestFailed);
                request.Request();
            }
        }
 void CheckForUpdate()
 {
     if (!WaitingToCompleteTransaction())
     {
         SetUpdateStatus(UpdateStatusStates.CheckingForUpdate);
         RequestLatestVersion request = new RequestLatestVersion();
         request.RequestSucceeded += new EventHandler(onVersionRequestSucceeded);
         request.RequestFailed += new EventHandler(onVersionRequestFailed);
         request.Request();
     }
 }