Ejemplo n.º 1
0
        /// <summary>
        /// save/reset the modified SPs in the database
        /// </summary>
        private void SaveSP()
        {
            foreach (var current in modifyed_sp)
            {
                db.SaveObject((ServerProperty)current.Value);
            }

            sp_saved = true;
            LoadServerProperties();
        }
Ejemplo n.º 2
0
        public void UpdateAccount(Account acct)
        {
            acct.Dirty = true;
            Database.SaveObject(acct);
            Database.ForceSave();

            Log.Success("AccountMgr", "Updated account " + acct.Username);

            lock (_accounts) {
                if (_accounts.ContainsKey(acct.Username.ToLower()))
                {
                    _accounts.Remove(acct.Username.ToLower());
                }
                _accounts[acct.Username.ToLower()] = acct;
            }
        }