예제 #1
0
        private void connect()
        {
            bool result = true;

            if (oracleHandler.IsConnectionUp())
            {
                oracleHandler.CloseConnection();
                int tableNo = specifiers.Count;
                for (int i = 0; i < tableNo; ++i)
                {
                    removeSpecifier();
                }
            }
            else
            {
                oracleHandler.OpenConnection(getDBConnectionSettingsFromGUI());
                result = populateSources();
            }
            if (result)
            {
                updateControls(oracleHandler.IsConnectionUp());                 //the latest status determine...
            }
        }