示例#1
0
文件: Program.cs 项目: shijiaxing/MVP
 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();
 }
示例#2
0
 /// <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;
 }