static void Main(string[] args) { var mdl = new Model.Network("model.xml"); foreach (var t in mdl.Terminals) { Console.WriteLine(t); foreach (var u in t.Users) Console.WriteLine(u); } Console.ReadKey(); }
/// <summary> /// Конструктор презентера /// </summary> /// <param name="view">Интерфейс представления</param> /// <param name="network">Модель</param> public Presenter(IMainView view, Network network) { mainView = view; this.network = network; mainView.network = network.Terminals; }