public void Refresh(ReadOnlyBook book, EventProxy events) { if (this.control == null) { throw new InvalidOperationException(); } this.events = events; this.PopulateControl(book); }
public Control Create(ReadOnlyBook book, EventProxy events) { if (this.control != null) { throw new InvalidOperationException(); } this.events = events; this.control = null; //new PiePlot(); this.PopulateControl(book); return this.control; }