-
-
Save JoaoSE-Skyline/2250107c87f7df5661880f8224a16fc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dictionary<string, string> options = new Dictionary<string, string>(); | |
options.Add("1", "Upload default configuration"); | |
options.Add("2", "Upload custom configuration"); | |
...... | |
public static void AddOptions(this UIBlockDefinition checkBoxList, Dictionary<string, string> options) | |
{ | |
foreach(var option in options) | |
{ | |
checkBoxList.AddCheckBoxListOption(option.Key, option.Value); | |
} | |
} | |
public static Dictionary<string, bool> GetAllChecked(this UIResults uir, string destVar, Dictionary<string, string> options) | |
{ | |
return options.ToDictionary(o => o.Key, o => uir.GetChecked(destVar, o.Key)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment