public void Test() { // ×é×° Controler control = new Controler(); control.Model = new Randomizer(); control += new TraceView(); control += new EventLogView(); control.Process(); }
public void Test() { // 组装 Controler control = new Controler(); IModel model = new Model(); control.Model = model; control += new TraceView(); control += new EventLogView(); // 后续Model修改时,不经过Controller,而是经由观察者完成View的变化 model[1] = 2000; // 第一次修改(修改的内容按照之前的随机数计算不会出现) model[3] = -100; // 第二次修改(修改的内容按照之前的随机数计算不会出现) }
public ViewModel_EventLog(EventLogView vw) { this.vw = vw; vw.DataContext = EventList; }
public ReturnVM Update(EventLogView model) { throw new NotImplementedException(); }