public ImagePanel(Base parent) : base(parent) { // Normal { Control.ImagePanel img = new Control.ImagePanel(this); img.ImageName = "gwen.png"; img.SetPosition(10, 10); img.SetBounds(10, 10, 100, 100); } // Missing { Control.ImagePanel img = new Control.ImagePanel(this); img.ImageName = "missingimage.png"; img.SetPosition(120, 10); img.SetBounds(120, 10, 100, 100); } }
public ImagePanel(ControlBase parent) : base(parent) { // Normal { Control.ImagePanel img = new Control.ImagePanel(this); img.ImageName = "gwen.png"; img.SetPosition(10, 10); img.SetBounds(10, 10, 100, 100); } // Missing { Control.ImagePanel img = new Control.ImagePanel(this); img.ImageName = "missingimage.png"; img.SetPosition(120, 10); img.SetBounds(120, 10, 100, 100); } }