ATMLCommonLibrary.forms.ATMLSpashScreen._timer_Tick C# (CSharp) Method

_timer_Tick() private method

private _timer_Tick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void _timer_Tick(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(CurrentMessage))
            {
                string message = CurrentMessage + Ticks.Substring(0, _tickCount);
                _tickCount = _tickCount >= Ticks.Length ? 0 : _tickCount + 1;
                lblCaption.Invoke((MethodInvoker) (() => lblCaption.Text = message));
            }
        }