private void updateIPAddressesToolStripMenuItem_Click(object sender, EventArgs e) { IPAddress.ClearIP(); DialogResult dr = MessageBox.Show("Attempt to obtain public ip address?", "Request for data", MessageBoxButtons.YesNo); if (DialogResult.Yes == dr) { IPAddress.AllowAccessForIP(true); } else { IPAddress.AllowAccessForIP(false); } BindTesterIP(); }