From 5633cd2afe32d140e51c5032ebe6cc0d4f7c8ebd Mon Sep 17 00:00:00 2001 From: adroslice Date: Sun, 17 Nov 2019 16:27:40 +0100 Subject: [PATCH] Added Remove-Operation - TODO: Find a way to re-use Replace-Operation-UI by omitting the replacement-option --- BFR/MainWindow.xaml | 34 ++++++++++++++++++++++++++++++++++ BFR/MainWindowUIProperties.cs | 3 ++- BFR/Operations/Remove.cs | 8 ++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 BFR/Operations/Remove.cs diff --git a/BFR/MainWindow.xaml b/BFR/MainWindow.xaml index 7a67239..fde5052 100644 --- a/BFR/MainWindow.xaml +++ b/BFR/MainWindow.xaml @@ -162,6 +162,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/BFR/MainWindowUIProperties.cs b/BFR/MainWindowUIProperties.cs index 688f1cc..43f4c73 100644 --- a/BFR/MainWindowUIProperties.cs +++ b/BFR/MainWindowUIProperties.cs @@ -24,7 +24,8 @@ namespace BFR public OperationType[] OperationTypes { get; } = new[] { OperationType.Make(), - OperationType.Make() + OperationType.Make(), + OperationType.Make(), }; public readonly AvaloniaProperty isCommitButtonEnabled = diff --git a/BFR/Operations/Remove.cs b/BFR/Operations/Remove.cs new file mode 100644 index 0000000..33d5107 --- /dev/null +++ b/BFR/Operations/Remove.cs @@ -0,0 +1,8 @@ +namespace BFR.Operations +{ + class Remove : Replace + { + public override string Name => nameof(Remove); + public override string Description => "Removes the selected part of the file name."; + } +}