// Class constructor with parent ObjectHolder argument public BasicSectionDragDropObject(ObjectHolder parent) : base(parent) { standardBackgroundImage = new Bitmap(Properties.Resources.BasicSectionIcon, Size); dragEnterBackroungImage = new Bitmap(Properties.Resources.BasicSectionDragEnteredIcon, Size); Graphics g = Graphics.FromImage(standardBackgroundImage); g.DrawString((BasicSectionNumber++).ToString(), new Font("Arial", 8), new SolidBrush(Color.Black), ClientRectangle); g.Flush(); g.Dispose(); BackgroundImage = standardBackgroundImage; DragDropObjectType = 1; DragLeave += new EventHandler(OnDragLeave); sectionInputs = new BasicSectionInputsForm(); }