diff --git a/BFR/Helpers/Extensions.cs b/BFR/Helpers/Extensions.cs new file mode 100644 index 0000000..c18649d --- /dev/null +++ b/BFR/Helpers/Extensions.cs @@ -0,0 +1,14 @@ +using System.Collections.Generic; + +namespace BFR.Helpers +{ + public static class IListExtensions + { + public static void ReplaceAll(this IList list, IEnumerable replacement) + { + list.Clear(); + foreach (var t in replacement) + list.Add(t); + } + } +} diff --git a/BFR/MainWindow.xaml b/BFR/MainWindow.xaml index bd9c615..427882c 100644 --- a/BFR/MainWindow.xaml +++ b/BFR/MainWindow.xaml @@ -10,8 +10,8 @@ - -