Пример #1
0
        public static void SaveModel()
        {
            ItemDB.SaveAll();
            //	Reload so we have item ids which are allocate by the DB.
            ItemDB.LoadAll();

            UserDB.SaveAll();
        }
Пример #2
0
        public static void SaveModel()
        {
            ItemDB.SaveAll();
            UserDB.SaveAll();

            //	Reload so we have item ids which are allocate by the DB.
            ItemDB.LoadAll();

            System.Threading.Tasks.Task.Factory.StartNew(() =>
            {
                Model.syncManager.Send(SyncManager.Syncing);
                System.Threading.Tasks.Task.Delay(5000).Wait();
                Model.syncManager.Send(SyncManager.Synced);
            });
        }