コード例 #1
0
        private void _dataGridViewVertices_SelectionChanged(object sender, EventArgs e)
        {
            bool[] selection = new bool[dataGridViewVertices.Rows.Count];

            foreach (DataGridViewRow row in dataGridViewVertices.SelectedRows)
            {
                selection[row.Index] = true;
            }

            _modelView.ChangeVertexSelection(selection);
        }