Пример #1
0
        private void _servicesView_DragDrop(object sender, DragEventArgs e)
        {
            var newServices = new Service[PriceManager.Services.Count];

            for (int i = 0; i < _servicesView.Rows.Count; i++)
            {
                Service service = _servicesView.Rows[i].Tag as Service;
                if (service != null)
                {
                    newServices[i] = service;
                }
            }

            PriceManager.UpdateServices(newServices);

            ValidateCells(null);
        }