Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 void ITree.ShiftBranchLevels(ShiftBranchLevelsData shiftData)
 {
     (myParent as ITree).ShiftBranchLevels(shiftData);
 }
Esempio n. 4
0
 /// <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);
 }
Esempio n. 5
0
 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;
 }
Esempio n. 7
0
 public static bool Compare(ShiftBranchLevelsData operand1, ShiftBranchLevelsData operand2)
 {
     Debug.Assert(false); // There is no need to compare these
     return(false);
 }