BabbySay.Form1.timer_tick C# (CSharp) Method

timer_tick() public method

public timer_tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        public void timer_tick(object sender, EventArgs e)
        {
            this.pos++;
            if (this.pos == this.thangs[0].Length)
            {
                this.pos = 0;
            }
            int num = 90;
            string[] array = new string[]
            {
                "",
                "",
                "",
                "",
                "",
                "",
                "",
                "",
                "",
                "",
                ""
            };
            if (this.pos + num > this.thangs[0].Length)
            {
                int num2 = this.thangs[0].Length - this.pos;
                for (int i = 0; i < this.thangs.Length; i++)
                {
                    array[i] = this.thangs[i].Substring(this.pos, num2) + this.thangs[i].Substring(0, num - num2);
                }
            }
            else
            {
                for (int j = 0; j < this.thangs.Length; j++)
                {
                    array[j] = this.thangs[j].Substring(this.pos, num);
                }
            }
            this.tb_showstuff.Lines = array;
        }