Exemplo n.º 1
0
 private void PropertyDown()
 {
     if (_PropertyList.Items.Count > 1 &&
         _PropertyList.SelectedItem != null &&
         _PropertyList.SelectedIndex < _PropertyList.Items.Count - 1)
     {
         IPropertyContainer pc = _ClassList.SelectedItem as IPropertyContainer;
         if (pc != null)
         {
             var selected = _PropertyList.SelectedItem;
             if (pc.MoveDown((PropertyDataListItem)_PropertyList.SelectedItem))
             {
                 RefreshPropertyList();
                 _PropertyList.SelectedItem = selected;
             }
         }
     }
 }