Skip to content

Commit

Permalink
AddedGithubUpdater
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkBQE committed Sep 1, 2019
1 parent d6309cf commit d398249
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 9 deletions.
2 changes: 1 addition & 1 deletion TestSquirrel/TestSquirrel.nuspec → TestSquirrel.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<metadata>
<id>TestSquirrel</id>
<version>1.0.2</version>
<version>1.0.3</version>
<title></title>
<authors>munawar</authors>
<owners></owners>
Expand Down
14 changes: 13 additions & 1 deletion TestSquirrel/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 23 additions & 5 deletions TestSquirrel/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,42 @@ public Form1()

}

private async void Form1_Load(object sender, EventArgs e)
private void Form1_Load(object sender, EventArgs e)
{
List<string> ls = new List<string>();
ls.Add("String");
await CheckUpdate();

DataGridView dv = new DataGridView();
dv.DataSource = ls;
this.Controls.Add(dv);



}

private async Task CheckUpdate()
{
try
{

using (var mgr =await UpdateManager.GitHubUpdateManager(@"https://github.com/MarkBQE/TestSquirrel"))
{

var UpdateNeeded = await mgr.UpdateApp();

using(var updatemanager = new UpdateManager(@"C:\Users\Munawar\source\repos\TestSquirrel\TestSquirrel\Releases"))


}
}
catch (Exception e)
{
await updatemanager.UpdateApp();

}

}

private async void UltraButton1_Click(object sender, EventArgs e)
{
await CheckUpdate();
}
}
}
4 changes: 2 additions & 2 deletions TestSquirrel/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.3")]
[assembly: AssemblyFileVersion("1.0.3")]
[assembly: AssemblyVersion("1.0.4")]
[assembly: AssemblyFileVersion("1.0.4")]
1 change: 1 addition & 0 deletions TestSquirrel/Properties/licenses.licx
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Infragistics.Win.UltraWinGrid.UltraGrid, Infragistics4.Win.UltraWinGrid.v16.2, Version=16.2.20162.2182, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
Infragistics.Win.UltraWinEditors.UltraComboEditor, Infragistics4.Win.UltraWinEditors.v16.2, Version=16.2.20162.2182, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
Infragistics.Win.Misc.UltraButton, Infragistics4.Win.Misc.v16.2, Version=16.2.20162.2182, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb

0 comments on commit d398249

Please sign in to comment.