public void AddNewTherapyPlaceType(TherapyPlaceType newTherapyPlaceType) { lock (this) { configRepo.AddTherapyPlaceType(newTherapyPlaceType); } }
public void UpdateTherapyPlaceType(TherapyPlaceType updatedTherapyPlaceType) { lock (this) { configRepo.UpdateTherapyPlaceType(updatedTherapyPlaceType); } }
private static void WriteTherapyPlaceType(XmlWriter writer, TherapyPlaceType therapyPlaceType) { writer.WriteStartElement(TherapyPlaceType); writer.WriteAttributeString(NameAttribute, therapyPlaceType.Name); writer.WriteAttributeString(IconTypeAttribute, therapyPlaceType.IconType.ToString()); writer.WriteAttributeString(IdAttribute, therapyPlaceType.Id.ToString()); writer.WriteEndElement(); }
private void OnUpdatedTherapyPlaceTypeAvailable(TherapyPlaceType updatedTherapyPlaceType) { if (updatedTherapyPlaceType.Id == therapyPlace.TypeId) { Application.Current.Dispatcher.Invoke(() => { PlaceTypeIcon = GetIconForTherapyPlaceType(updatedTherapyPlaceType.IconType); }); } }
public void SendTherapyPlaceTypeUpdatedNotification(TherapyPlaceType updatedTherapyPlaceType) { notificationThreadCollection?.SendNotification(new TherpyPlaceTypeUpdatedNotificationObject(updatedTherapyPlaceType)); }
private void OnUpdatedTherapyPlaceTypeAvailable(TherapyPlaceType therapyPlaceType) { UpdatedTherapyPlaceTypeAvailable?.Invoke(therapyPlaceType); }
private void OnNewTherapyPlaceTypeAvailable(TherapyPlaceType newTherapyPlaceType) { cachedTherapyPlaceTypes.Add(newTherapyPlaceType.Id, newTherapyPlaceType); }
private void OnUpdatedTherapyPlaceTypeAvailable(TherapyPlaceType updatedTherapyPlaceType) { cachedTherapyPlaceTypes[updatedTherapyPlaceType.Id] = updatedTherapyPlaceType; UpdatedTherapyPlaceTypeAvailable?.Invoke(updatedTherapyPlaceType); }
public void UpdateTherapyPlaceType(TherapyPlaceType updatedTherapyPlaceType) { configuration.UpdateTherapyPlaceTupe(updatedTherapyPlaceType); }
public void AddTherapyPlaceType(TherapyPlaceType newTherapyPlaceType) { configuration.AddTherapyPlaceType(newTherapyPlaceType); }
public TherpyPlaceTypeUpdatedNotificationObject(TherapyPlaceType therapyPlaceType) : base(NetworkMessageType.TherapyPlaceTypeUpdatedNotification) { TherapyPlaceType = therapyPlaceType; }
public TherapyPlaceTypeUpdatedNotification(TherapyPlaceType therapyPlaceType, ConnectionSessionId sessionId) : base(NetworkMessageType.TherapyPlaceTypeUpdatedNotification) { TherapyPlaceType = therapyPlaceType; SessionId = sessionId; }
public void SendTherapyPlaceTypeAddedNotification(TherapyPlaceType newTherapyPlaceType) { notificationThreadCollection?.SendNotification(new TherpyPlaceTypeAddedNotificationObject(newTherapyPlaceType)); }
public void UpdateTherapyPlaceTupe(TherapyPlaceType updatedTherapyPlaceType) { configuredTherapyPlaceTypes.Remove(GetTherapyPlaceTypeById(updatedTherapyPlaceType.Id)); AddTherapyPlaceType(updatedTherapyPlaceType); }
public void AddTherapyPlaceType(TherapyPlaceType newTherapyPlaceType) { configuredTherapyPlaceTypes.Add(newTherapyPlaceType); }
public TherapyPlaceTypeSerializationDouble(TherapyPlaceType therapyPlaceType) { Name = therapyPlaceType.Name; IconType = therapyPlaceType.IconType; Id = therapyPlaceType.Id; }
private void OnNewTherapyPlaceTypeAvailable(TherapyPlaceType therapyPlaceType) { NewTherapyPlaceTypeAvailable?.Invoke(therapyPlaceType); }