private void _typesView_DragDrop(object sender, DragEventArgs e) { var newTypes = new PaperType[PriceManager.PaperTypes.Count]; for (int i = 0; i < _typesView.Rows.Count; i++) { PaperType type = _typesView.Rows[i].Tag as PaperType; if (type != null) { newTypes[i] = type; } } PriceManager.UpdatePaperTypes(newTypes); ValidateCells(null); }