Exemple #1
0
        private void _formatsView_DragDrop(object sender, DragEventArgs e)
        {
            var newFormats = new PaperFormat[PriceManager.PaperFormats.Count];

            for (int i = 0; i < _formatsView.Rows.Count; i++)
            {
                PaperFormat type = _formatsView.Rows[i].Tag as PaperFormat;
                if (type != null)
                {
                    newFormats[i] = type;
                }
            }

            PriceManager.UpdatePaperFormats(newFormats);

            ValidateCells(null);
        }