/// <summary> /// Initialize a new UpdateManager object /// </summary> /// <param name="version">Your application version</param> /// <param name="updateUrl">The URL where your XML update file is located</param> /// <param name="dataType">The DataType that can be used to deserialize the update information</param> public UpdateManager(Version version, string updateUrl, DataType dataType) { UpdateUrl = updateUrl; DataType = dataType; ApplicationVersion = new Version(version.Major, version.Minor, version.Build, version.Revision); StringVariables = new StringVariables(); }
/// <summary> /// Initiate a new UpdateManager object /// </summary> /// <param name="version">Your application version</param> /// <param name="updateUrl">The URL where your XML update file is located</param> /// <param name="stringVariables">StringVariables object containing strings that can be used to display information to the user</param> /// <param name="dataType">The DataType that can be used to deserialize the update information</param> /// <param name="showNoUpdates">Sets whether a dialog should be displayed when no updates are available</param> public UpdateManager(Version version, string updateUrl, StringVariables stringVariables, DataType dataType, bool showNoUpdates) { UpdateUrl = updateUrl; DataType = dataType; ApplicationVersion = new Version(version.Major, version.Minor, version.Build, version.Revision); StringVariables = stringVariables; ShowNoUpdates = showNoUpdates; }
/// <summary> /// Initialize a new UpdateManager /// </summary> public UpdateManager() { StringVariables = new StringVariables(); }