Beispiel #1
0
        static void dm_UpdateAvailable(object sender, UpdateArgs e)
        {
            var dm = sender as DownloadManager;

            if (dm == null)
                return;

            if (e.OldVersion == String.Empty || e.OldVersion == "0.0.0.0")
                Console.WriteLine("[{0}] !New! -> {1}", e.UpdateName, e.NewVersion);

            else
                Console.WriteLine("[{0}] {1} -> {2}", e.UpdateName, e.OldVersion, e.NewVersion);
        }
        private void OnUpdateAvailable(object sender, UpdateArgs e)
        {
            BUpdatesAvailable = UpdateState.Available;

            if (UpdateAvailable != null)
                UpdateAvailable(sender, e);
        }
 private void OnNoUpdateAvailable(object sender, UpdateArgs e)
 {
     if (NoUpdateAvailable != null)
         NoUpdateAvailable(sender, e);
 }
Beispiel #4
0
 static void dm_NoUpdateAvailable(object sender, UpdateArgs e)
 {
     Console.WriteLine("[{0}] -> up-to-date!", e.UpdateName);
 }
 void _ucDownloadManager_UpdateAvailable(object sender, UpdateArgs e)
 {
     _strUpdateFiles += "[" + e.UpdateName + "] " + e.OldVersion + " -> " + e.NewVersion + "\n";
 }