Exemplo n.º 1
0
 public PuzzleEntryViewModel(IPuzzleLibraryEntry puzzle, SelectPuzzleViewModel parent)
 {
     Parent   = parent;
     Puzzle   = puzzle;
     Grid     = Puzzle.Puzzle.Grid;
     Author   = "Author: " + puzzle.Author;
     Select   = new PuzzleLeft(this);
     Selected = Cell.Create <bool>(false);
 }
Exemplo n.º 2
0
 public MainWindowViewModel()
 {
     Game                  = new GameWindowViewModel(this);
     SelectedPuzzle        = new SelectPuzzleViewModel(this);
     this.OpenRules        = new OpenRulesCommand();
     this.OpenPuzzleSelect = new OpenPuzzleSelectCommand(SelectedPuzzle);
     this.OpenStartGame    = new OpenStartGameCommand(this);
     Exit                  = new ExitCommand(this);
     Closing               = new ClosingCommand(this);
 }
Exemplo n.º 3
0
 public OpenPuzzleSelectCommand(SelectPuzzleViewModel vm)
 {
     _vm = vm;
 }
Exemplo n.º 4
0
 public SelectPuzzleSelectCommand(SelectPuzzleViewModel vm)
 {
     this._vm = vm;
 }