예제 #1
0
 /// <summary>
 /// get properties associated with SyncElementStatus
 /// </summary>
 /// <param name="syncElementStatus">status</param>
 /// <returns></returns>
 public static StatusProperties GetStatusProperties(SyncElementStatus syncElementStatus)
 {
     return(statusPropertiesList[(int)syncElementStatus]);
 }
예제 #2
0
 /// <summary>
 /// create StatusChangedEvent
 /// </summary>
 /// <param name="syncElementInfo">reference to the element, whose status has been changed</param>
 /// <param name="createStatus">the status of the element, which should be preserved</param>
 public StatusChangedEvent(SyncElementInfo syncElementInfo, SyncElementStatus createStatus)
 {
     SyncElementInfo = syncElementInfo;
     CreateStatus    = createStatus;
 }
예제 #3
0
 /// <summary>
 /// call when conflicted
 /// </summary>
 /// <param name="ci">conflict info</param>
 public void Conflicted(ElementConflictInfo ci)
 {
     ConflictInfo = ci;
     SyncStatus = SyncElementStatus.Conflicted;
 }
예제 #4
0
 /// <summary>
 /// get properties associated with SyncElementStatus
 /// </summary>
 /// <param name="syncElementStatus">status</param>
 /// <returns></returns>
 public static StatusProperties GetStatusProperties(SyncElementStatus syncElementStatus)
 {
     return statusPropertiesList[(int)syncElementStatus];
 }
예제 #5
0
 /// <summary>
 /// create StatusChangedEvent
 /// </summary>
 /// <param name="syncElementInfo">reference to the element, whose status has been changed</param>
 /// <param name="createStatus">the status of the element, which should be preserved</param>
 public StatusChangedEvent(SyncElementInfo syncElementInfo, SyncElementStatus createStatus)
 {
     SyncElementInfo = syncElementInfo;
     CreateStatus = createStatus;
 }