Exemple #1
0
 public ScreenA(Navigator navigator) : base(navigator)
 {
     this.BoardViewModel = new BoardViewModel(ReversiBoard.CreateInitialState(4, 4));
 }
Exemple #2
0
 public ScreenB(Navigator navigator) : base(navigator)
 {
     GoToA = new EasyCommand(() => SwitchTo(new ScreenA(navigator)));
 }
Exemple #3
0
 protected Screen(Navigator navigator)
 {
     this.navigator = navigator;
 }
 public GameScreen(Navigator navigator, Puzzle puzzle) : base(navigator)
 {
     gameVM = new GameVM(puzzle);
     Reset  = new EasyCommand(() => SwitchTo(new GameScreen(navigator, puzzle)));
     Again  = new EasyCommand(() => SwitchTo(new SelectScreen(navigator)));
 }
 public SelectScreen(Navigator navigator) : base(navigator)
 {
     selectVM = new SelectVM();
     Start    = new EasyCommand(() => SwitchTo(new GameScreen(navigator, selectVM.SelectedPuzzle.Puzzle)));
 }
 public StartScreen(Navigator navigator) : base(navigator)
 {
     Start = new EasyCommand(() => SwitchTo(new SelectScreen(navigator)));
 }
 public Screen(Navigator navigator)
 {
     this.navigator = navigator;
 }