/// <summary> /// Removes a decorator from this picture box /// </summary> /// <param name="decorator">The decorator to remove from this picture box</param> public void RemoveDecorator(PictureBoxDecorator decorator) { _pictureBoxDecorators.Remove(decorator); Invalidate(); }
/// <summary> /// Adds a decorator to this picture box /// </summary> /// <param name="decorator">The decorator to add to this picture box</param> public void AddDecorator(PictureBoxDecorator decorator) { _pictureBoxDecorators.Add(decorator); decorator.AddedToPictureBox(this); Invalidate(); }