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