コード例 #1
0
        private void configureDBCredentials()
        {
            checkDBSavedCredentials();
            CRMMobileDesaDB.GetConnectionProfile().Credentials = _lastDBCredentials;
            CRMMobileDesaDB.GetConnectionProfile().Save();

            CRMMobileDesaDB.GetSynchronizationProfile().Credentials = _lastDBCredentials;
            CRMMobileDesaDB.GetSynchronizationProfile().Save();
        }
コード例 #2
0
        private void configureDBConnection()
        {
            ConnectionProfile cnProfile = CRMMobileDesaDB.GetConnectionProfile();

            configureConnectionnProfile(cnProfile);

            ConnectionProfile cnSyncProfile = CRMMobileDesaDB.GetSynchronizationProfile();

            configureConnectionnProfile(cnSyncProfile);

#if !DEBUG
            CRMMobileDesaDB.GetLogger().SetLogLevel(LogLevel.OFF);
#endif
            CRMMobileDesaDB.SetApplication(_sybaseApp);
            CRMMobileDesaDB.RegisterCallbackHandler(this);
            //CRMMobileDesaDB.Initialize(;
            CRMMobileDesaDB.OpenConnection();
            IsDBOpen = true;
        }