Exemplo n.º 1
0
        private void Image_Click(object sender, EventArgs e)
        {
            RefreshDesk();
            var pos = tableLayoutPanel1.GetCellPosition(sender as PictureBox);
            var a   = GetCoordiantes(pos.Row - 1, pos.Column - 1);

            DoDragDrop($"{a}", DragDropEffects.Move);
            (sender as PictureBox).BackColor = Color.Bisque;
            _desk.ChoseAction(a.X, a.Y);
        }