Inheritance: System.Windows.Forms.Form
        private void tcpipConnect_Click(object sender, EventArgs e)
        {
            var connector = new TcpIpDialog();
            var dr        = connector.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                var connection = connector.ConnectionString;

                // process the new connection string and lets connect and then refresh the devices.
                var result = CommandRunner.Instance.TcpConnect(connection);
                if (result)
                {
                    RefreshDevices();
                }
            }
        }
        private void tcpipConnect_Click(object sender, EventArgs e)
        {
            var connector = new TcpIpDialog();
            var dr = connector.ShowDialog();
            if(dr == System.Windows.Forms.DialogResult.OK) {
                var connection = connector.ConnectionString;

                // process the new connection string and lets connect and then refresh the devices.
                var result = CommandRunner.Instance.TcpConnect(connection);
                if(result) {
                    RefreshDevices();
                }
            }
        }