Esempio n. 1
0
        private void Colour_Drop(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(typeof(string)))
            {
                string col = e.Data.GetData(typeof(string)).ToString();

                Rectangle r = sender as Rectangle;
                var       y = Grid.GetColumn(r);
                var       x = Grid.GetRow(r);
                vmm.PopulateShapes(x, y, col);
            }
        }