From c51914730281239bc8403948e7d69e33bf09f8fa Mon Sep 17 00:00:00 2001 From: adroslice Date: Sun, 17 Nov 2019 16:22:19 +0100 Subject: [PATCH] Added Replace-Operation, structuring and reworked event bindings - Added Replace-Operation + UI - Added OperationMode to make it easier to give operations different modes - Replaced all specific-control-event-handlers with one general PropertyChanged-event-handler for each preview and filter - TODO: Add Remove-Operation as a subclass of Replace --- BFR/MainWindow.xaml | 52 +++++++++++++++++--- BFR/MainWindow.xaml.cs | 13 ++--- BFR/MainWindowUIProperties.cs | 8 ++-- BFR/Operations/OperationMode.cs | 11 +++++ BFR/Operations/Replace.cs | 85 +++++++++++++++++++++++++++++++++ BFR/Operations/ReplaceMode.cs | 14 ++++++ 6 files changed, 164 insertions(+), 19 deletions(-) create mode 100644 BFR/Operations/OperationMode.cs create mode 100644 BFR/Operations/Replace.cs create mode 100644 BFR/Operations/ReplaceMode.cs diff --git a/BFR/MainWindow.xaml b/BFR/MainWindow.xaml index 6dc8cf3..7a67239 100644 --- a/BFR/MainWindow.xaml +++ b/BFR/MainWindow.xaml @@ -6,6 +6,7 @@ mc:Ignorable="d" MinWidth="720" MinHeight="480" x:Class="BFR.MainWindow" Title="BFR"> + @@ -17,13 +18,13 @@ - + - + - + - + @@ -99,6 +100,10 @@ +