private void BtnStartDnsClick(object sender, EventArgs e) { if (btnStartDNS.Text.Contains("Initialize")) { // Set the IP _dns.IP = tbIP.Text; // start _dns.Start(); // change btnStartDNS.Text = Resources.StopDns; } else { _dns.Stop(); btnStartDNS.Text = Resources.StartDns; } }