This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfixes, added update center, changelogs visible in information
zekroTJA
committed
Jul 31, 2016
1 parent
c820b66
commit bc265eb
Showing
24 changed files
with
6,659 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace meautosd | ||
{ | ||
public partial class fUpdate : Form | ||
{ | ||
public fUpdate() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void fUpdate_Load(object sender, EventArgs e) | ||
{ | ||
lbClientVersion.Text = cConst.VERSION; | ||
lbLatestVersion.Text = cUpdate.getOnelineFile(cConst.versionFileURL); | ||
rtbChangelog.Text = cUpdate.getOnelineFile(cConst.changelogsFileURL); | ||
} | ||
|
||
private void richTextBox1_TextChanged(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void btOK_Click(object sender, EventArgs e) | ||
{ | ||
this.Close(); | ||
} | ||
|
||
private void button1_Click(object sender, EventArgs e) | ||
{ | ||
try { | ||
WebClient client = new WebClient(); | ||
client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(dlProgressChanged); | ||
client.DownloadFileCompleted += new AsyncCompletedEventHandler(dlComplete); | ||
client.DownloadFileAsync(new Uri(cUpdate.getOnelineFile(cConst.updateFileURL)), "ameautosd_update.exe"); | ||
pbUpdate.Visible = true; | ||
lbDlStatus.Visible = true; | ||
} catch (Exception exc) | ||
{ | ||
MessageBox.Show("Can not download update file. Perhaps, there is a problem with your net connection or the update file url is invalid. \n\n Exceprion: \n\n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); | ||
} | ||
} | ||
|
||
private void dlComplete(object sender, AsyncCompletedEventArgs e) | ||
{ | ||
MessageBox.Show("Download completed. Update file location: \n\n" + AppDomain.CurrentDomain.BaseDirectory + "ameautosd_update.exe", "Update complete!", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
Application.Exit(); | ||
} | ||
|
||
private void dlProgressChanged(object sender, DownloadProgressChangedEventArgs e) | ||
{ | ||
lbDlStatus.Text = e.BytesReceived / 1024 + " kB / " + e.TotalBytesToReceive / 1024 + " kB"; | ||
pbUpdate.Value = e.ProgressPercentage; | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="PushBulletSharp" version="2.3.3" targetFramework="net452" /> | ||
</packages> |