From 0bc82dc6b549af0c01e22274908ff0a0388884f4 Mon Sep 17 00:00:00 2001 From: adroslice Date: Thu, 14 Nov 2019 19:08:21 +0100 Subject: [PATCH] Structuring, added file lists - You can now open a directory - The current filenames and previews are now displayed in the listboxes - Added method pipeline for updating the lists (OpenDirectory -> Filter -> Preview) --- BFR/Helpers/Extensions.cs | 14 ++++++++++++ BFR/MainWindow.xaml | 20 +++++++++++++---- BFR/MainWindow.xaml.cs | 41 +++++++++++++++++++++++++++++++++++ BFR/MainWindowUIProperties.cs | 14 +++++++++++- 4 files changed, 84 insertions(+), 5 deletions(-) create mode 100644 BFR/Helpers/Extensions.cs 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 @@ - -