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