make all buttons text bold too foreach (var file in Directory.GetFiles(selectedPath)) {…
- User
make all buttons text bold too
foreach (var file in Directory.GetFiles(selectedPath)) { if (Path.GetFileName(file).StartsWith("Sla")) { Key_2_SLASH.ForeColor = Color.Red; KeyStrings[Num_Slash] = file; } if (Path.GetFileName(file).StartsWith("Mult")) { Key_3_MULTI.ForeColor = Color.Red; KeyStrings[Num_Multi] = file; } if (Path.GetFileName(file).StartsWith("Subtract")) { Key_4_MIN.ForeColor = Color.Red; KeyStrings[Num_Sub] = file; } if (Path.GetFileName(file).StartsWith("Seven")) { Key_5_SEVEN.ForeColor = Color.Red; KeyStrings[Num_7] = file; } if (Path.GetFileName(file).StartsWith("Eight")) { Key_6_EIGHT.ForeColor = Color.Red; KeyStrings[Num_8] = file; } if (Path.GetFileName(file).StartsWith("Nine")) { Key_7_NINE.ForeColor = Color.Red; KeyStrings[Num_9] = file; } if (Path.GetFileName(file).StartsWith("Plus")) { Key_8_PLUS.ForeColor = Color.Red; KeyStrings[Num_Plus] = file; } if (Path.GetFileName(file).StartsWith("Four")) { Key_9_FOUR.ForeColor = Color.Red; KeyStrings[Num_4] = file; } if (Path.GetFileName(file).StartsWith("Five")) { Key_FIVE.ForeColor = Color.Red; KeyStrings[Num_5] = file; } if (Path.GetFileName(file).StartsWith("Six")) { Key_11_SIX.ForeColor = Color.Red; KeyStrings[Num_6] = file; } if (Path.GetFileName(file).StartsWith("One")) { Key_12_ONE.ForeColor = Color.Red; KeyStrings[Num_1] = file; } if (Path.GetFileName(file).StartsWith("Two")) { Key_13_TWO.ForeColor = Color.Red; KeyStrings[Num_2] = file; } if (Path.GetFileName(file).StartsWith("Three")) { Key_14_THREE.ForeColor = Color.Red; KeyStrings[Num_3] = file; } if (Path.GetFileName(file).StartsWith("Zero")) { Key_16_ZERO.ForeColor = Color.Red; KeyStrings[Num_0] = file; } if (Path.GetFileName(file).StartsWith("F5")) { F5B.ForeColor = Color.Red; KeyStrings[F5_Key] = file; } if (Path.GetFileName(file).StartsWith("F6")) { F6B.ForeColor = Color.Red; KeyStrings[F6_Key] = file; } if (Path.GetFileName(file).StartsWith("F7")) { F7B.ForeColor = Color.Red; KeyStrings[F7_Key] = file; } if (Path.GetFileName(file).StartsWith("F8")) { F8B.ForeColor = Color.Red; KeyStrings[F8_Key] = file; } if (Path.GetFileName(file).StartsWith("F3")) { F3BB.ForeColor = Color.Red; KeyStrings[F3_Key] = file; } if (Path.GetFileName(file).StartsWith("F4")) { F4B.ForeColor = Color.Red; KeyStrings[F4_Key] = file; } if (Path.GetFileName(file).StartsWith("F9")) { F9B.ForeColor = Color.Red; KeyStrings[F9_Key] = file; } if (Path.GetFileName(file).StartsWith("F10")) { F10B.ForeColor = Color.Red; KeyStrings[F10_Key] = file; } if (Path.GetFileName(file).StartsWith("F11")) { F11B.ForeColor = Color.Red; KeyStrings[F11_Key] = file; } if (Path.GetFileName(file).StartsWith("F12")) { F12B.ForeColor = Color.Red; KeyStrings[F12_Key] = file; } if (Path.GetFileName(file).StartsWith("F_One")) { F1B.ForeColor = Color.Red; KeyStrings[F1_Key] = file; } if (Path.GetFileName(file).StartsWith("F2")) { F2B.ForeColor = Color.Red; KeyStrings[F2_Key] = file; } if (Path.GetFileName(file).StartsWith("Positive")) { Key_1_NUM.ForeColor = Color.Red; KeyStrings[OPlus] = file; } if (Path.GetFileName(file).StartsWith("Negative")) { Key_15.ForeColor = Color.Red; KeyStrings[OMinus] = file; }
- Assistant
- User
Key_1_NUM Key_2_SLASH Key_3_MULTI Key_4_MIN Key_5_SEVEN Key_6_EIGHT.ForeColor = button1.ForeColor; Key_7_NINE.ForeColor = button1.ForeColor; Key_8_PLUS.ForeColor = button1.ForeColor; Key_9_FOUR.ForeColor = button1.ForeColor; Key_FIVE.ForeColor = button1.ForeColor; Key_11_SIX.ForeColor = button1.ForeColor; Key_12_ONE.ForeColor = button1.ForeColor; Key_13_TWO.ForeColor = button1.ForeColor; Key_14_THREE.ForeColor = button1.ForeColor; Key_15.ForeColor = button1.ForeColor; Key_16_ZERO.ForeColor = button1.ForeColor; F2B.ForeColor = button1.ForeColor; F5B.ForeColor = button1.ForeColor; F6B.ForeColor = button1.ForeColor; F7B.ForeColor = button1.ForeColor; F8B.ForeColor = button1.ForeColor; F3BB.ForeColor = button1.ForeColor; F4B.ForeColor = button1.ForeColor; F1B.ForeColor = button1.ForeColor; F2B.ForeColor = button1.ForeColor; F9B.ForeColor = button1.ForeColor; F10B.ForeColor = button1.ForeColor; F11B.ForeColor = button1.ForeColor; F12B.ForeColor = button1.ForeColor; remove the = side and return list
- Assistant
Here is the list you requested, with all the
= button1.ForeColor;parts removed:Key_1_NUM Key_2_SLASH Key_3_MULTI Key_4_MIN Key_5_SEVEN Key_6_EIGHT Key_7_NINE Key_8_PLUS Key_9_FOUR Key_FIVE Key_11_SIX Key_12_ONE Key_13_TWO Key_14_THREE Key_15 Key_16_ZERO F2B F5B F6B F7B F8B F3BB F4B F1B F2B F9B F10B F11B F12B