Пример #1
0
        private void propertyGrid_PropertyValueChanged(object s, System.Windows.Forms.PropertyValueChangedEventArgs e)
        {
            if (_selectedItem == null)
            {
                return;
            }

            BlasterCommand command = _selectedItem.Tag as BlasterCommand;

            _selectedItem.SubItems[0].Text = command.Name;

            propertyGrid.Validate();

//			e.ChangedItem.PropertyDescriptor = PropertyDescriptor

            Console.WriteLine("Desc: {0}", command.Description);

            Save2();
        }