initial commit
This commit is contained in:
30
window.cs
Normal file
30
window.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user