30 lines
547 B
C#
30 lines
547 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using sections;
|
|
|
|
namespace window
|
|
{
|
|
|
|
public class Display
|
|
{
|
|
Dictionary<int, Section> sectionList;
|
|
|
|
|
|
public Display () {
|
|
sectionList = new Dictionary<int, Section>();
|
|
}
|
|
|
|
public void AddSection(Section section) {
|
|
sectionList.Add(sectionList.Count,section);
|
|
}
|
|
|
|
public void Present() {
|
|
Console.Clear();
|
|
foreach (Section section in sectionList.Values) {
|
|
section.Write();
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} |