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