-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add checking for updates
- Loading branch information
Showing
22 changed files
with
6,190 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Mystter_SendTweet.Languages; | ||
using System; | ||
using System.ComponentModel; | ||
using System.Windows.Forms; | ||
|
||
namespace Mystter_SendTweet { | ||
public partial class CheckingUpdatesForm : Form { | ||
public Updater Updater { get; private set; } | ||
|
||
public CheckingUpdatesForm() { | ||
InitializeComponent(); | ||
} | ||
|
||
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { | ||
this.Updater = new Updater(); | ||
} | ||
|
||
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { | ||
progressBar1.Enabled = false; | ||
Close(); | ||
} | ||
|
||
private void CheckingUpdatesForm_Load(object sender, EventArgs e) { | ||
label1.Text = Resources.checkingForUpdates; | ||
progressBar1.Enabled = true; | ||
backgroundWorker1.RunWorkerAsync(); | ||
} | ||
} | ||
} |
Oops, something went wrong.