Above
- Code: Select all
public MainForm()
Add:
- Code: Select all
private Button button9;
Below
- Code: Select all
this.groupBox11 = new System.Windows.Forms.GroupBox();
Add
- Code: Select all
this.button9 = new System.Windows.Forms.Button();
Below
- Code: Select all
//
// groupBox11
//
Add
- Code: Select all
this.groupBox11.Controls.Add(this.button9);
Below
- Code: Select all
this.groupBox11.Text = "Auto-Updater";
Add
- Code: Select all
//
// button9
//
this.button9.Location = new System.Drawing.Point(371, 85);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(93, 23);
this.button9.TabIndex = 14;
this.button9.Text = "Update Check";
this.button9.Click += new System.EventHandler(this.button9_Click);
And finally below
- Code: Select all
private void doAddons()
{
SetStatusBarPanelText(statusBarPanel1, _UPDWOWADDON);
setControlEnabled(addonSyncBtn, false);
setControlEnabled(autoAddonSyncNow, false);
UpdateAddons();
if (chAllowDelAddons.Checked)
{
deleteSpecifiedAddons();
}
DebugLine(_ADDONSUPD);
setControlEnabled(addonSyncBtn, true);
setControlEnabled(autoAddonSyncNow, true);
SetStatusBarPanelText(statusBarPanel1, _READY);
}
Add
- Code: Select all
private void button9_Click(object sender, System.EventArgs e)
{
job = new ThreadStart(doUpdates);
UploadThread = new Thread(job);
UploadThread.Name = "UpdatesThread";
UploadThread.Start();
}
private void doUpdates()
{
UserClickedNoUpdate = false;
CheckForUpdates();
}
You now have a new button in the "Updater" tab marked "Update Check" :-)
Now I bid you all adieu for a few weeks as I'm moving house and shall be without internet for a bit, :-( (Sux I know, but I'll try and get on at my brothers or a friends or something now an then).