void Port_CheckedChanged(object sender, EventArgs e)
{
try
{
CheckBox box = (CheckBox)sender;
if (box.Checked)
{
ConfigUtils.SetFirewallAccess(m_application.ExecutablePath, (int)box.Tag);
}
else
{
ConfigUtils.RemoveFirewallAccess((int)box.Tag);
}
UpdatePorts();
}
catch (Exception exception)
{
GuiUtils.HandleException(this.Text, System.Reflection.MethodBase.GetCurrentMethod(), exception);
}
}