예제 #1
0
        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();
        }
예제 #2
0
        private void ScanProjectManager_Load(object sender, EventArgs e)
        {
            SetTimePickers();
            SetProgrammingLanguages();
            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();
        }