示例#1
0
        void PawnShape_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            // sh.BackColor=PawnShape.BackColor;
            // sh.BringToFront();
            // DoDragDrop(sh, DragDropEffects.None);

            WindowsFormsApplication1.Program.SelectedPawn = ID.ToString() + PawnShape.BackColor;
            OldLocation = PawnShape.Location;
            PawnShape.BringToFront();
        }