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

            GameAreaViewModels.Add(newGameArea);
        }