Inheritance: System.Windows.Forms.Form
Example #1
0
        /// <summary>
        /// This is the main HOSTS file button event handler.
        /// </summary>
        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();
        }