Example #1
0
        public static bool Get(Form parent,bool bReset, ref string Err, ref string inifile_prefix, string default_DataBase_name, ref bool bNewDataBaseCreated,NavigationButtons.Navigation nav, ref bool bCanceled)
        {
            if (DBSync.RemoteDB_data == null)
            {
                DBSync.RemoteDB_data = new RemoteDB_data(bReset,inifile_prefix, 1, m_DBType, default_DataBase_name);
            }

            if (DBSync.DB_for_Tangenta.m_DBTables.MakeDataBaseConnection(parent, DBSync.RemoteDB_data, ref bNewDataBaseCreated, nav, ref bCanceled))
            {
                if (!DBSync.RemoteDB_data.Save(inifile_prefix, ref Err))
                {
                    LogFile.Error.Show(Err);
                }
                return true;
            }
            else
            {
                if (bCanceled)
                {
                    return false;
                }
                else
                {
                    Err = lngRPM.s_ConnectionToLocalDatabaseFailed.s;
                    LogFile.Error.Show(Err);
                    return false;
                }
            }
        }
Example #2
0
 public RemoteDB_data Clone()
 {
     RemoteDB_data new_RemoteDB_data = new RemoteDB_data(false,this.m_Settings_RemoteDB.m_inifile_prefix, this.Settings_Index, this.DBType, this.ConnectionName);
     new_RemoteDB_data.bChanged = this.bChanged;
     new_RemoteDB_data.bNewDatabase = this.bChanged;
     new_RemoteDB_data.bWindowsAuthentication = this.bWindowsAuthentication;
     new_RemoteDB_data.DataSource = this.DataSource;
     new_RemoteDB_data.DataBase = this.DataBase;
     new_RemoteDB_data.crypted_Password = this.crypted_Password;
     new_RemoteDB_data.DBType = this.DBType;
     new_RemoteDB_data.ConnectionName = this.ConnectionName;
     new_RemoteDB_data.UserName = this.UserName;
     new_RemoteDB_data.Settings_Index = this.Settings_Index;
     new_RemoteDB_data.strDataBaseFilePath = this.strDataBaseFilePath;
     new_RemoteDB_data.strDataBaseLogFilePath = this.strDataBaseLogFilePath;
     return new_RemoteDB_data;
 }