Ejemplo n.º 1
0
        public async void NewGame()
        {
            var aa    = Attempts;
            var level = Level;

            Puzzle?.Hide();
            Attempts = null;

            var p = Combination.CreatePuzzle(level);

            p.Height = height;
            p.Hide();

            foreach (var a in aa)
            {
                a.Empty();
            }

            Attempts = aa;
            Puzzle   = p;

            OnWon?.BeginInvoke(this, null, null, null);

            CurrentAttemptIndex = 0;
            SetAttempt(0);
        }
Ejemplo n.º 2
0
 private void YouWon()
 {
     OnWon?.BeginInvoke(this, null, null, null);
     Puzzle.Show();
 }