mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-22 15:06:26 +01:00
18 lines
662 B
C#
18 lines
662 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace ShareeBike.ViewModel.Settings
|
|
{
|
|
/// <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)
|
|
{
|
|
}
|
|
}
|
|
}
|