Manual Update Check button...

Support and feedback for UniUploader
UniUploader requires microsoft .net runtimes!

Manual Update Check button...

Postby Calystos » Thu Sep 25, 2008 10:56 pm

Okay, along with my recent patch to enable manual selection of an Updates URL. Here's the Manual Updates Check Button too! :-D

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).
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth

Re: Manual Update Check button...

Postby MattM » Sat Sep 27, 2008 4:41 am

Thanks again Calystos! Added this to the todo list :)
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA


Return to UniUploader

Who is online

Users browsing this forum: No registered users and 1 guest

cron