예제 #1
0
 private void ToggleCell()
 {
     if (_pieceController == null)
     {
         var model = PieceFactory.Instance.CreateModel("BlueCross");
         var view  = PieceFactory.Instance.CreateView();
         _view.AddPiece(view);
         _pieceController = PieceFactory.Instance.CreateController(model, view);
     }
     else
     {
         RemovePiece();
     }
 }