public void SaveWorld(string worldName) { if (WorldExists(worldName)) { CurrentWorld.Save(worldName); } else { CurrentWorld = CreateWorld(worldName); } }
private void SaveWorldFile() { Task.Factory.StartNew(() => CurrentWorld.Save(CurrentFile)) .ContinueWith(t => CommandManager.InvalidateRequerySuggested(), TaskFactoryHelper.UiTaskScheduler); }