sharee.bike-App/SharedBusinessLogic/ViewModel/Settings/PickerViewModel.cs

19 lines
662 B
C#
Raw Normal View History

2022-10-17 18:45:38 +02:00
using System.Collections.Generic;
using System.Linq;
2024-04-09 12:53:23 +02:00
namespace ShareeBike.ViewModel.Settings
2022-10-17 18:45:38 +02:00
{
/// <summary> Manages data to be shown by a picker. </summary>
public class PickerViewModel : ServicesViewModel
{
/// <summary>Constructs view model ensuring consistency. </summary>
/// <param name="serviceToText"> Dictionary holding values and display text to mange and display by picker.</param>
/// <param name="active">Value of entry for which the display text has to be shown.</param>
public PickerViewModel(
IDictionary<string, string> serviceToText,
string active) : base(serviceToText.Select(x => x.Key), serviceToText, active)
{
}
}
}