Ejemplo n.º 1
0
        /// Get connection details
        private void GetConnectionDetails()
        {
            DBConnector.DBConnector reg = new DBConnector.DBConnector();

            if (DBServerName == string.Empty)
            {
                DBServerName = reg.GetDBServerName(0);
            }
            if (DBUserName == string.Empty)
            {
                DBUserName = reg.GetDBUserName(0);
            }
            if (DBPassword == string.Empty)
            {
                DBPassword = reg.GetDBPassword(0);
            }

            if (DBServerName == string.Empty | DBUserName == string.Empty | DBPassword == string.Empty)
            {
                throw new Exception("Setup Error, Please contact NEXtCARE.");
            }
        }