Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. ObservableCollection<RoomObject> roomObjects;
  2. public ObservableCollection<RoomObject> RoomObjects
  3. {
  4. get { return roomObjects; }
  5. set
  6. {
  7. System.Diagnostics.Debug.WriteLine("Elem lista változás");
  8. if (RoomObjects != null)
  9. {
  10. foreach (RoomObject roomObject in RoomObjects)
  11. {
  12.  
  13. System.Diagnostics.Debug.WriteLine(roomObject.Name);
  14. System.Diagnostics.Debug.WriteLine(roomObject.Width);
  15. System.Diagnostics.Debug.WriteLine(roomObject.Height);
  16. System.Diagnostics.Debug.WriteLine(roomObject.TranslationX);
  17. System.Diagnostics.Debug.WriteLine(roomObject.TranslationY);
  18.  
  19.  
  20. }
  21.  
  22. }
  23.  
  24. SetValue(ref roomObjects, value);
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement