Ejemplo n.º 1
0
 public InstanceState(InstanceState instanceState, InstanceStateType instanceStateType)
 {
     this.stateType           = instanceStateType;
     this.invalidProperties   = instanceState.invalidProperties;
     this.invalidChildIndices = instanceState.invalidChildIndices;
     this.childOperation      = instanceState.childOperation;
 }
Ejemplo n.º 2
0
 public InstanceState(IProperty propertyKey)
 {
     this.stateType         = InstanceStateType.PropertyOrChildInvalid;
     this.invalidProperties = new List <IProperty>(1)
     {
         propertyKey
     };
 }
Ejemplo n.º 3
0
 public InstanceState(DocumentNodeChange args)
 {
     this.stateType = InstanceStateType.PropertyOrChildInvalid;
     if (!args.IsPropertyChange)
     {
         this.childOperation = new InstanceState.ChildOperation(args.ChildIndex, args.Action);
         return;
     }
     this.invalidProperties = new List <IProperty>(1)
     {
         args.PropertyKey
     };
 }
Ejemplo n.º 4
0
 public InstanceState(int childIndex, DocumentNodeChangeAction action)
 {
     this.stateType      = InstanceStateType.PropertyOrChildInvalid;
     this.childOperation = new InstanceState.ChildOperation(childIndex, action);
 }
Ejemplo n.º 5
0
 public InstanceState(IEnumerable <int> invalidChildIndices, InstanceStateType instanceStateType)
 {
     this.stateType           = instanceStateType;
     this.invalidChildIndices = new SortedSet <int>(invalidChildIndices);
 }
Ejemplo n.º 6
0
 private InstanceState(InstanceStateType stateType)
 {
     this.stateType = stateType;
 }