Ejemplo n.º 1
0
        public void Setup()
        {
            // Called when the user has requested to setup the plug-in instance.

            // Show the setup dialog
            SetupDialog setup = new SetupDialog(_comPortNum, _minIntensity);

            // Save the port number from the dialog box in this instance data, and the XML node.
            if (setup.ShowDialog() == DialogResult.OK)
            {
                _comPortNum = setup.PortNumber;
                _setupData.SetInteger(_setupNode, "port", _comPortNum);

                _minIntensity = setup.MinIntensity;
                _setupData.SetInteger(_setupNode, "min", _minIntensity);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }