Beispiel #1
0
        static void Main()
        {
            PriorityDocumentManager pdm = new PriorityDocumentManager();
              pdm.AddDocument(new Document("one", "Sample", 8));
              pdm.AddDocument(new Document("two", "Sample", 3));
              pdm.AddDocument(new Document("three", "Sample", 4));
              pdm.AddDocument(new Document("four", "Sample", 8));
              pdm.AddDocument(new Document("five", "Sample", 1));
              pdm.AddDocument(new Document("six", "Sample", 9));
              pdm.AddDocument(new Document("seven", "Sample", 1));
              pdm.AddDocument(new Document("eight", "Sample", 1));

              pdm.DisplayAllNodes();
            Console.ReadKey();
        }
Beispiel #2
0
        static void Main()
        {
            PriorityDocumentManager pdm = new PriorityDocumentManager();

            pdm.AddDocument(new Document("one", "Sample", 8));
            pdm.AddDocument(new Document("two", "Sample", 3));
            pdm.AddDocument(new Document("three", "Sample", 4));
            pdm.AddDocument(new Document("four", "Sample", 8));
            pdm.AddDocument(new Document("five", "Sample", 1));
            pdm.AddDocument(new Document("six", "Sample", 9));
            pdm.AddDocument(new Document("seven", "Sample", 1));
            pdm.AddDocument(new Document("eight", "Sample", 1));

            pdm.DisplayAllNodes();
        }