/// <summary>
    /// move the item down in the list it is a member of.
    /// </summary>
    /// <param name="Item"></param>
    public static void MoveDown(this IScreenItem Item)
    {
      // the sectionHeader of the item.
      var sectionHeader = Item.SectionHeader;

      // index of the item in the items list of section header.
      var ix = sectionHeader.ItemIndexOf(Item);
      if (sectionHeader.IsLastItem(ix) == false)
      {
        var cpl = new CopyPasteList(false);
        cpl.AddCut(Item);
        cpl.PasteAfter(sectionHeader, ix + 1);
      }
    }
Exemple #2
0
 static ScreenDefnGlobal( )
 {
     ScreenDefnGlobal.CopyPasteList = new CopyPasteList(true);
 }