CodeImp.Gluon.BuienradarDisplayPanel.UpdateComplete C# (CSharp) Метод

UpdateComplete() приватный Метод

private UpdateComplete ( ) : void
Результат void
        private void UpdateComplete()
        {
            if(this.InvokeRequired)
            {
                VoidEventHandler d = new VoidEventHandler(UpdateComplete);
                this.BeginInvoke(d);
            }
            else
            {
                if(updatefailed)
                {
                    failbutton.Text = "Scan Failed";
                    failbutton.StartWarningFlash();
                    incomingbutton.Text = "N / A";
                    incomingbutton.StopWarningFlash();
                    clearbutton.Text = "N / A";
                    clearbutton.StopInfoFlash();
                }
                else
                {
                    failbutton.Text = "Scan OK";
                    failbutton.StopWarningFlash();
                    incomingbutton.Text = incomingtext;
                    if(flashincoming)
                        incomingbutton.StartWarningFlash();
                    else
                        incomingbutton.StopWarningFlash();
                    clearbutton.Text = cleartext;
                    if(flashclear)
                        clearbutton.StartInfoFlash();
                    else
                        clearbutton.StopInfoFlash();
                }

                // Start timer for next update
                updatetimer.Interval = nextupdatedelay;
                updatetimer.Start();
            }
        }