Jak sortować słowa ze dictionary(int, string) w TextBox?
dictionary.cs :
public class dictionary
{
public static Dictionary<int, string> eng_math = new Dictionary<int, string>
{
[1] = "Plus",
[2] = "Minus",
[3] = "Multiply",
...
[29] = "Diagonal",
};
public static Dictionary<int, string> pol_math = new Dictionary<int, string>
{
[1] = "Plus",
[2] = "Minus",
[3] = "Pomnożyć",
...
[29] = "Przekątna",
};
WindowA.xaml.cs :
for (int index = 1; index < dictionary.eng_math.Count + 1; index++)
{
TextBox2.Text += (dictionary.eng_math[index] + " - " + dictionary.pol_math[index] + "\n");
}