示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LiveUpdateService"/> class.
 /// </summary>
 public LiveUpdateService()
 {
     this._versionRetriever = new OnlineVersionRetriever(this.Logger);
     this._client = new LiveUpdateClient(this._versionRetriever, this.Logger);
     this.Configuration = this.DefaultConfig;
     this._updateTimer.Elapsed += this.UpdateTimer_Elapsed;
     this.Status = HelperServiceStatus.Stopped;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LiveUpdateClientForm"/> class.
 /// </summary>
 /// <param name="request">
 /// The request.
 /// </param>
 /// <param name="client">
 /// The client.
 /// </param>
 /// <param name="logo">
 /// The logo.
 /// </param>
 public LiveUpdateClientForm(UpdateRequest request, LiveUpdateClient client, Image logo)
 {
     this.InitializeComponent();
     this._request = request;
     this._client = client;
     this.lblProduct.Text = this.lblProduct.Text.Replace("%PRODUCT_NAME%", request.ProductName);
     this.txtCurrentVersion.Text = request.FromVersion.VersionNumber.ToString();
     this.txtNewVersion.Text = request.ToVersion.VersionNumber.ToString();
     this.imgLogo.Image = logo;
 }