FlushResponses() private method

private FlushResponses ( ) : void
return void
Example #1
0
        void ownerForm_Load(object sender, EventArgs e)
        {
            // if we've already recieved messages from wyUpdate
            // then process them now.
            auBackend.FlushResponses();

            SetMenuText(translation.CheckForUpdatesMenu);

            // if we want to kill ouself, then don't bother checking for updates
            if (auBackend.ClosingForInstall)
            {
                return;
            }

            auBackend.AppLoaded();

            if (UpdateStepOn != UpdateStepOn.Nothing)
            {
                // show the updater control
                if (!KeepHidden)
                {
                    Show();
                }
            }

            if (auBackend.UpdateType != UpdateType.DoNothing)
            {
                // see if enough days have elapsed since last check.
                TimeSpan span = DateTime.Now.Subtract(auBackend.LastCheckDate);

                if (span.Days >= m_DaysBetweenChecks)
                {
                    tmrWaitBeforeCheck.Enabled = true;
                }
            }
        }