private void RedirectButton_Click(object sender, EventArgs e)
{
// If we do not have a redirect in the hosts file...
if (!Redirector.RedirectsEnabled || Redirector.RedirectMethod == RedirectMode.DnsServer)
{
using (GamespyRedirectForm F = new GamespyRedirectForm())
{
F.ShowDialog();
}
}
else
{
Redirector.RemoveRedirects();
}
// Re check the redirects status
CheckRedirectService();
}