Esempio n. 1
0
 /** The the contents of this slot (i.e. the item in it) */
 public override void DrawContents()
 {
     // draw our object
     if (DDContent != null)
     {
         DDContent.Draw();
     }
     base.DrawContents();
 }
Esempio n. 2
0
 /** Simple draw for debuging, you will probably want to override this */
 public override void Draw()
 {
     // draw our object
     if (DDContent != null)
     {
         // position ourselves under the mouse
         DDContent.X = (int)(Mouse.Position.x + offset.x);
         DDContent.Y = (int)(Mouse.Position.y + offset.y);
         DDContent.Draw();
     }
     UpdateDragDrop();
 }