Example #1
0
        /*
         * private string GetKey(string tag1, string tag2)
         * {
         *  KeyBuilder.Length = 0;
         *  KeyBuilder.Append(tag1).Append('|').Append(tag2);
         *  return KeyBuilder.ToString();
         * }
         *
         * private void AddAinB(HashSet<Photo> photos1, HashSet<Photo> photos2, List<Photo> output)
         * {
         *  foreach (var photo in photos1)
         *      if (photos2.Contains(photo))
         *          output.Add(photo);
         * }
         */

        public TagMatrix(SlideShowInput input)
        {
            Input = input;

            InitTags();

            // InitMatrix();
        }
Example #2
0
        /*
         * private string GetKey(string tag1, string tag2)
         * {
         *  KeyBuilder.Length = 0;
         *  KeyBuilder.Append(tag1).Append('|').Append(tag2);
         *  return KeyBuilder.ToString();
         * }
         *
         * private void AddAinB(HashSet<Photo> photos1, HashSet<Photo> photos2, List<Photo> output)
         * {
         *  foreach (var photo in photos1)
         *      if (photos2.Contains(photo))
         *          output.Add(photo);
         * }
         */

        public TagMatrixV1(SlideShowInput input)
        {
            InitTags(input.Photos);

            // InitMatrix();
        }