public void CloseArea(GameAreaViewModel gameAreaViewModel) { gameAreaViewModel.Save().ContinueWith(e => { GameAreaViewModels.Remove(gameAreaViewModel); }); }
private void CreateNewGameAreaExecute(object sender) { var newGameArea = new GameAreaViewModel(this) { GameTablePostion = new Rect(0, 0, 400, 200), Orientaion = new RotateTransform(0), }; GameAreaViewModels.Add(newGameArea); }