Пример #1
0
 private void RemoveProperty()
 {
     if (_ClassList.SelectedItem != null && _PropertyList.SelectedItem != null)
     {
         IPropertyContainer pc = _ClassList.SelectedItem as IPropertyContainer;
         if (pc != null)
         {
             pc.RemoveProperty(_PropertyList.SelectedIndex);
             RefreshPropertyList();
             if (_PropertyList.Items.Count > 0)
             {
                 _PropertyList.SelectedIndex = _PropertyList.Items.Count - 1;
             }
         }
     }
 }