mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 07:06:33 +01:00
18 lines
656 B
C#
18 lines
656 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace TINK.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)
|
|
{
|
|
}
|
|
}
|
|
}
|