Ejemplo n.º 1
0
 public GameScreen(Navigator navigator, Puzzle puzzle) : base(navigator)
 {
     Rerun       = new EasyCommand(() => SwitchTo(new StartScreen(navigator)));
     VM          = new GameViewModel(puzzle);
     resetPuzzle = puzzle;
     Reset       = new EasyCommand(() =>
                                   SwitchTo(new GameScreen(navigator, puzzle)));
 }
Ejemplo n.º 2
0
 public StartScreen(Navigator navigator) : base(navigator)
 {
     VM    = new StartViewModel();
     Start = new EasyCommand(() => SwitchTo(new GameScreen(navigator, VM.SelectedPuzzle.Puzzle)));
 }
Ejemplo n.º 3
0
 public MainScreen(Navigator navigator) : base(navigator)
 {
     GoToSettings = new EasyCommand(() => SwitchTo(new SettingsScreen(navigator)));
     Undo         = new UndoCommand(this);
 }
Ejemplo n.º 4
0
 public ScreenB(Navigator navigator) : base(navigator)
 {
     GoToA = new EasyCommand(() => SwitchTo(new ScreenA(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)));
 }