public static void SaveModel() { ItemDB.SaveAll(); // Reload so we have item ids which are allocate by the DB. ItemDB.LoadAll(); UserDB.SaveAll(); }
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); }); }