コード例 #1
0
 /// <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();
 }
コード例 #2
0
 /// <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();
 }