示例#1
0
        public override bool Setup()
        {
            BlinkyLinkySetup setup = new BlinkyLinkySetup(_data);
            if (setup.ShowDialog() == DialogResult.OK) {
                if (setup.Address != null)
                    _data.Address = setup.Address;
                _data.Port = setup.Port;
                _data.Stream = setup.Stream;
                CloseConnection();
                return true;
            }

            return false;
        }
示例#2
0
        public override bool Setup()
        {
            BlinkyLinkySetup setup = new BlinkyLinkySetup(_data);

            if (setup.ShowDialog() == DialogResult.OK)
            {
                if (setup.Address != null)
                {
                    _data.Address = setup.Address;
                }
                _data.Port   = setup.Port;
                _data.Stream = setup.Stream;
                CloseConnection();
                return(true);
            }

            return(false);
        }