GetBytesProcessed() public static method

public static GetBytesProcessed ( ) : int
return int
Example #1
0
 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();
     }
 }