Simplified connection manager to support one connection only.
Fixed wrong DialogResult value.
Incorporated changes of ConnectionManager.