private void checkBoxF3_CheckedChanged(object sender, EventArgs e)
{
if (this.checkBoxF3.Checked == true)
{
if (RecForwConnection3.StartForward(
//Source parameters (always passed in, however the connection manager will use it just in the case the
// connection is not active already)
IPAddress.Parse(this.listBoxLocalAddr.Items[2].ToString()),
IPAddress.Parse(this.listBoxIPAddress.Items[2].ToString()),
int.Parse(this.listBoxPort.Items[2].ToString()),
// Forward parameters
IPAddress.Parse(this.listBoxForwardingInterface.Items[2].ToString()),
IPAddress.Parse(this.listBoxForwardingMulticast.Items[2].ToString()),
int.Parse(this.listBoxForwardingPort.Items[2].ToString())) == false)
{
this.checkBoxF3.Checked = false;
}
else
{
this.progressBarF3.Visible = true;
}
}
else
{
RecForwConnection3.StopForwarding();
this.progressBarF3.Visible = false;
}
}