public void Setup() { // Called when the user has requested to setup the plug-in instance. // Show the setup dialog SetupDialog setup = new SetupDialog(m_RemoteIPAddr, m_minIntensity); // Save the port number from the dialog box in this instance data, and the XML node. if (setup.ShowDialog() == DialogResult.OK) { m_RemoteIPAddr = setup.IPAddr; m_setupData.SetString(m_setupNode, IPAddr, m_RemoteIPAddr.ToString()); m_minIntensity = setup.MinIntensity; m_setupData.SetInteger(m_setupNode, MinIntensity, m_minIntensity); } }