Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlgorithmViewPair"/> class.
 /// </summary>
 /// <param name="algorithm">The algorithm.</param>
 /// <param name="view">The view.</param>
 public AlgorithmViewPair(IEnumerable <Move> algorithm, CubeView view)
 {
     Algorithm = new List <Move>(algorithm);
     View      = view;
 }
 /// <summary>
 /// Adds a new algotithm and its view to the collection
 /// </summary>
 /// <param name="algorithm">Algorithm.</param>
 /// <param name="view">View.</param>
 public void Add(IEnumerable <Move> algorithm, CubeView view)
 {
     _pairs.Add(new AlgorithmViewPair(algorithm, view));
 }