public User(string name, string city, TypeMoodUser type) { Name = name; City = city; TypeMood = type; }
/// <summary> /// Load moods image /// </summary> /// <param name="type"></param> public BitmapImage LoadMood(TypeMoodUser type) { switch (type) { case TypeMoodUser.Bad: return new BitmapImage(new Uri("pack://application:,,,/media/bad_mood.png")); case TypeMoodUser.Cool: return new BitmapImage(new Uri("pack://application:,,,/media/cool_mood.png")); case TypeMoodUser.Good: return new BitmapImage(new Uri("pack://application:,,,/media/good_mood.png")); default: break; } return null; }