Skip to content

Commit

Permalink
Added auto updater & checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor W committed Dec 11, 2017
1 parent 40503a4 commit 77a7065
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions Hawkchat/Client/MainWindow.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Hawkchat.Client.admin;
using AutoUpdaterDotNET;
using Hawkchat.Client.admin;
using Hawkchat.Client.utils;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -77,22 +78,31 @@ private void MainWindow_Load(object sender, EventArgs e)

this.Text = "Hawk Chat";
this.Size = Constants.SMALL_WINDOW;




btnEndConversation.Visible = false;
visualPanel1.Visible = false;
btnReportUser.Visible = false;
btnRequestMore.Visible = false;
btnSendMessage.Visible = false;

txtMessage.Visible = false;


this.Update();

System.Timers.Timer updateChecker = new System.Timers.Timer();

updateChecker.Interval = 60000;
updateChecker.Elapsed += UpdateChecker_Elapsed;
updateChecker.Start();

}

private void UpdateChecker_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{

AutoUpdater.Start("http://blackhawksoftware.net/software/hawkchat/updater/appcast.xml");

}

private void visualButton1_Click(object sender, EventArgs e)
{
Expand Down

0 comments on commit 77a7065

Please sign in to comment.