///-------------------------------------------------------------------------------- /// <summary>This method sends the edit item performed message to have the /// update applied.</summary> ///-------------------------------------------------------------------------------- public void SendEditPropertyRelationshipPerformed() { PropertyRelationshipEventArgs message = new PropertyRelationshipEventArgs(); message.PropertyRelationship = PropertyRelationship; message.PropertyID = PropertyID; message.Solution = Solution; message.WorkspaceID = WorkspaceID; Mediator.NotifyColleagues <PropertyRelationshipEventArgs>(MediatorMessages.Command_EditPropertyRelationshipPerformed, message); }
///-------------------------------------------------------------------------------- /// <summary>This method processes the delete PropertyRelationship command.</summary> ///-------------------------------------------------------------------------------- public void ProcessDeletePropertyRelationshipCommand() { PropertyRelationshipEventArgs message = new PropertyRelationshipEventArgs(); message.PropertyRelationship = PropertyRelationship; message.PropertyID = PropertyID; message.Solution = Solution; message.WorkspaceID = WorkspaceID; Mediator.NotifyColleagues <PropertyRelationshipEventArgs>(MediatorMessages.Command_DeletePropertyRelationshipRequested, message); }
///-------------------------------------------------------------------------------- /// <summary>This method processes the new PropertyRelationship command.</summary> ///-------------------------------------------------------------------------------- public void ProcessNewPropertyRelationshipCommand() { PropertyRelationshipEventArgs message = new PropertyRelationshipEventArgs(); message.PropertyRelationship = new PropertyRelationship(); message.PropertyRelationship.PropertyRelationshipID = Guid.NewGuid(); message.PropertyRelationship.PropertyID = PropertyID; message.PropertyRelationship.PropertyBase = Solution.PropertyBaseList.FindByID((Guid)PropertyID); if (message.PropertyRelationship.PropertyBase != null) { message.PropertyRelationship.Order = message.PropertyRelationship.PropertyBase.PropertyRelationshipList.Count + 1; } message.PropertyRelationship.Solution = Solution; message.PropertyID = PropertyID; message.Solution = Solution; message.WorkspaceID = WorkspaceID; Mediator.NotifyColleagues <PropertyRelationshipEventArgs>(MediatorMessages.Command_EditPropertyRelationshipRequested, message); }