Exemplo n.º 1
0
        // ** SELECTION **

        /// <summary>
        /// Add for all 54 sub faces of the cube an entry to a selection collection and set the selection to None
        /// </summary>
        private void InitSelection()
        {
            _selections = new SelectionCollection();
            this.Rubik.Cubes.ForEach(c => c.Faces.ToList().ForEach(f =>
            {
                if (f.Color != Color.Black)
                {
                    _selections.Add(new PositionSpec()
                    {
                        CubePosition = c.Position.Flags, FacePosition = f.Position
                    }, Selection.None);
                }
            }));
        }
 // ** SELECTION **
 /// <summary>
 /// Add for all 54 sub faces of the cube an entry to a selection collection and set the selection to None
 /// </summary>
 private void InitSelection()
 {
     _selections = new SelectionCollection();
       this.Rubik.Cubes.ForEach(c => c.Faces.ToList().ForEach(f =>
     {
       if (f.Color != Color.Black)
     _selections.Add(new PositionSpec() { CubePosition = c.Position.Flags, FacePosition = f.Position }, Selection.None);
     }));
 }