예제 #1
0
 /// <summary>
 /// Checks for/parses update.xml on server
 /// </summary>
 private void BgWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     // Check for update on server
     if (!SharpUpdateXml.ExistsOnServer(UpdateXmlLocation))
     {
         e.Cancel = true;
     }
     else // Parse update xml
     {
         e.Result = SharpUpdateXml.Parse(UpdateXmlLocation);
     }
 }
        /// <summary>
        /// Checks for/parse update.xml on server
        /// </summary>
        private void bgWorker_DoWork(Object sender, DoWorkEventArgs e)
        {
            ISharpUpdate application = (ISharpUpdate)e.Argument;

            if (!SharpUpdateXml.ExistsOnServer(application.UpdateXmlLocation))
            {
                e.Cancel = true;
            }
            else
            {
                e.Result = SharpUpdateXml.Parse(application.UpdateXmlLocation, application.ApplicationID);
            }
        }
예제 #3
0
        /// <summary>
        /// Checks for/parses update.xml on server
        /// </summary>
        private void bgWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            ISharpUpdatable application = (ISharpUpdatable)e.Argument;

            // Check for update on server
            if (!SharpUpdateXml.ExistsOnServer(application.UpdateXmlLocation))
            {
                e.Cancel = true;
            }
            else             // Parse update xml
            {
                e.Result = SharpUpdateXml.Parse(application.UpdateXmlLocation, application.ApplicationID);
            }
        }