mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 18:46:30 +01:00
19 lines
656 B
C#
19 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)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
}
|