private void checkBoxF7_CheckedChanged(object sender, EventArgs e)
{
if (this.checkBoxF7.Checked == true)
{
if (RecForwConnection7.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[6].ToString()),
IPAddress.Parse(this.listBoxIPAddress.Items[6].ToString()),
int.Parse(this.listBoxPort.Items[6].ToString()),
// Forward parameters
IPAddress.Parse(this.listBoxForwardingInterface.Items[6].ToString()),
IPAddress.Parse(this.listBoxForwardingMulticast.Items[6].ToString()),
int.Parse(this.listBoxForwardingPort.Items[6].ToString())) == false)
{
this.checkBoxF7.Checked = false;
}
else
{
this.progressBarF7.Visible = true;
}
}
else
{
RecForwConnection7.StopForwarding();
this.progressBarF7.Visible = false;
}
}