Ejemplo n.º 1
0
 public ComparisonCoupleElement(OpeningModelDTO elementOnServer, OpeningModel elementOnLocal)
 {
     Id             = elementOnServer.IdServer;
     IdRevitElement = elementOnLocal.IdLocal;
     IdDrawing      = elementOnServer.IdDrawing;
     IdManager      = elementOnServer.IdManager;
     LocalStatus    = DefineStatus.NORMAL;
     ServerStatus   = elementOnServer.ServerStatus;
     LocalGeometry  = elementOnLocal.Geometry;
     ServerGeometry = elementOnServer.Geometry;
     Comment        = elementOnServer.Comment;
     Name           = elementOnServer.NameManager;
     if (elementOnServer.ServerStatus == "Disconnect")
     {
         Action = Action.DISCONNECT;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// use when opening in local is deleted
 /// </summary>
 /// <param name="element"></param>
 public ComparisonCoupleElement(OpeningModelDTO element, bool isOpeningServer = true)
 {
     if (isOpeningServer)
     {
         Id             = element.IdServer;
         IdDrawing      = element.IdDrawing;
         IdManager      = element.IdManager;
         ServerGeometry = element.Geometry;
         Comment        = element.Comment;
         ServerStatus   = element.ServerStatus;
         Name           = element.NameManager;
     }
     else
     {
         IdRevitElement = element.IdRevitElement;
         LocalGeometry  = element.Geometry;
         LocalStatus    = DefineStatus.NORMAL;
         ServerStatus   = DefineStatus.NONE;
         Comment        = element.Comment;
         Id             = Guid.Empty.ToString();
         IdManager      = Guid.Empty.ToString();
     }
 }