static void Main(string[] args) { XMLDoc doc = new XMLDoc(); ChartView view1 = new ChartView(doc); GraphView view2 = new GraphView(doc); doc.Data = 100; doc.Data = 200; }
public GraphView(XMLDoc sub) { this.sub = sub; sub.Attach(this); }
public ChartView(XMLDoc sub) { this.sub = sub; sub.Attach(this); }