private void configureDBCredentials() { checkDBSavedCredentials(); CRMMobileDesaDB.GetConnectionProfile().Credentials = _lastDBCredentials; CRMMobileDesaDB.GetConnectionProfile().Save(); CRMMobileDesaDB.GetSynchronizationProfile().Credentials = _lastDBCredentials; CRMMobileDesaDB.GetSynchronizationProfile().Save(); }
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; }