AsterixDisplayAnalyser.FrmAstxRecFrwdForm.timer1_Tick C# (CSharp) Метод

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

private timer1_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (RecForwConnection1.IsRecordingEnabled() == true || RecForwConnection1.IsForwardingEnabled() == true)
            {
                this.labelBytes1.Text = RecForwConnection1.GetBytesProcessed().ToString();
            }
            if (RecForwConnection2.IsRecordingEnabled() == true || RecForwConnection2.IsForwardingEnabled() == true)
            {
                this.labelBytes2.Text = RecForwConnection2.GetBytesProcessed().ToString();
            }
            if (RecForwConnection3.IsRecordingEnabled() == true || RecForwConnection3.IsForwardingEnabled() == true)
            {
                this.labelBytes3.Text = RecForwConnection3.GetBytesProcessed().ToString();
            }
            if (RecForwConnection4.IsRecordingEnabled() == true || RecForwConnection4.IsForwardingEnabled() == true)
            {
                this.labelBytes4.Text = RecForwConnection4.GetBytesProcessed().ToString();
            }
            if (RecForwConnection5.IsRecordingEnabled() == true || RecForwConnection5.IsForwardingEnabled() == true)
            {
                this.labelBytes5.Text = RecForwConnection5.GetBytesProcessed().ToString();
            }
            if (RecForwConnection6.IsRecordingEnabled() == true || RecForwConnection6.IsForwardingEnabled() == true)
            {
                this.labelBytes6.Text = RecForwConnection6.GetBytesProcessed().ToString();
            }
            if (RecForwConnection7.IsRecordingEnabled() == true || RecForwConnection7.IsForwardingEnabled() == true)
            {
                this.labelBytes7.Text = RecForwConnection7.GetBytesProcessed().ToString();
            }
            if (RecForwConnection8.IsRecordingEnabled() == true || RecForwConnection8.IsForwardingEnabled() == true)
            {
                this.labelBytes8.Text = RecForwConnection8.GetBytesProcessed().ToString();
            }
            if (RecForwConnection9.IsRecordingEnabled() == true || RecForwConnection9.IsForwardingEnabled() == true)
            {
                this.labelBytes9.Text = RecForwConnection9.GetBytesProcessed().ToString();
            }
            if (RecForwConnection10.IsRecordingEnabled() == true || RecForwConnection10.IsForwardingEnabled() == true)
            {
                this.labelBytes10.Text = RecForwConnection10.GetBytesProcessed().ToString();
            }
        }