49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EgwCoreLib.Utils
|
|
{
|
|
/// <summary>
|
|
/// Object of this class gives you all the details about the update useful in handling the update logic yourself.
|
|
/// </summary>
|
|
public class UpdateInfoEventArgs : EventArgs
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// URL of the webpage specifying changes in the new update.
|
|
/// </summary>
|
|
public string ChangelogURL { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Returns newest version of the application available to download.
|
|
/// </summary>
|
|
public Version CurrentVersion { get; set; } = new Version();
|
|
|
|
/// <summary>
|
|
/// Download URL of the update file.
|
|
/// </summary>
|
|
public string DownloadURL { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Returns version of the application currently installed on the user's PC.
|
|
/// </summary>
|
|
public Version InstalledVersion { get; set; } = new Version();
|
|
|
|
/// <summary>
|
|
/// If new update is available then returns true otherwise false.
|
|
/// </summary>
|
|
public bool IsUpdateAvailable { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Shows if the update is required or optional.
|
|
/// </summary>
|
|
public bool Mandatory { get; set; } = false;
|
|
|
|
#endregion Public Properties
|
|
}
|
|
}
|