//public virtual void Draw(Graphics g) //{ // foreach (GraphicItem item in Items) // { // item.Draw(g, Container.UnitSize, 0); // } //} #endregion #region IDisposable 成员 public virtual void Dispose() { for (int i = 0; i < Toolkit.Count; i++) { IDisposable tool = Toolkit[i]; Toolkit[i] = null; tool.Dispose(); } Toolkit.Clear(); }