public BranchModificationLevelShift(BranchModificationAction action, ref ShiftBranchLevelsData shiftData)
 {
     Action = action;
     Branch = shiftData.Branch;
     Flag = false;
     Index = shiftData.StartIndex;
     Count = shiftData.Count;
     Depth = shiftData.Depth;
     NewCount = shiftData.NewCount;
     RemoveLevels = shiftData.RemoveLevels;
     InsertLevels = shiftData.InsertLevels;
     ReplacementBranch = shiftData.ReplacementBranch;
     BranchTester = shiftData.BranchTester;
 }
 /// <summary>
 ///     Add or remove entire levels from existing branch structures in the tree
 /// </summary>
 /// <param name="shiftData">The data for the shift operation</param>
 /// <returns>An events args object for IBranch.OnBranchModification</returns>
 public static BranchModificationEventArgs ShiftBranchLevels(ShiftBranchLevelsData shiftData)
 {
     return new BranchModificationLevelShift(BranchModificationAction.ShiftBranchLevels, ref shiftData);
 }
 void ITree.ShiftBranchLevels(ShiftBranchLevelsData shiftData)
 {
     (myParent as ITree).ShiftBranchLevels(shiftData);
 }
 /// <summary>
 ///     Add or remove entire levels from existing branch structures in the tree
 /// </summary>
 /// <param name="shiftData">The data for the shift operation</param>
 protected void ShiftBranchLevels(ShiftBranchLevelsData shiftData)
 {
     ShiftBranchLevels(
         shiftData.Branch, shiftData.RemoveLevels, shiftData.InsertLevels, shiftData.Depth, shiftData.ReplacementBranch,
         shiftData.BranchTester, shiftData.StartIndex, shiftData.Count, shiftData.NewCount);
 }
 void ITree.ShiftBranchLevels(ShiftBranchLevelsData shiftData)
 {
     ShiftBranchLevels(shiftData);
 }
 public static bool Compare(ShiftBranchLevelsData operand1, ShiftBranchLevelsData operand2)
 {
     Debug.Assert(false); // There is no need to compare these
     return false;
 }
Exemple #7
0
 public static bool Compare(ShiftBranchLevelsData operand1, ShiftBranchLevelsData operand2)
 {
     Debug.Assert(false); // There is no need to compare these
     return(false);
 }