public static void MoveDown(BaseController Controller) { // -------------------------------------------------------- // Move all selected items down // -------------------------------------------------------- List <string> PathsToMove = new List <string>(); foreach (string SelectedPath in Controller.SelectedPaths) { PathsToMove.Add(SelectedPath.Substring(SelectedPath.LastIndexOf(XmlHelper.Delimiter) + 1)); } ApsimFile.Component Parent = Controller.ApsimData.Find(Controller.SelectedPaths[0]).Parent; Parent.MoveDown(PathsToMove); }