Skip to content

Commit

Permalink
Merge pull request #28 from mystasly48/updater closes #15
Browse files Browse the repository at this point in the history
Add checking for updates
  • Loading branch information
mystasly48 committed May 3, 2020
2 parents 3cd32fb + 4f751c3 commit dd0235e
Show file tree
Hide file tree
Showing 22 changed files with 6,190 additions and 35 deletions.
84 changes: 84 additions & 0 deletions Mystter_SendTweet/CheckingUpdatesForm.Designer.cs

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

29 changes: 29 additions & 0 deletions Mystter_SendTweet/CheckingUpdatesForm.cs
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();
}
}
}
Loading

0 comments on commit dd0235e

Please sign in to comment.