From 5d8327f07121bc2e9044af9b5b6d3384866c9ecb Mon Sep 17 00:00:00 2001 From: adroslice Date: Sun, 17 Nov 2019 02:22:13 +0100 Subject: [PATCH] Fully implemented Operations UI with one example - You can now add, remove, modify and move operations - FilterChangedAny was renamed to FilterChanged, the new event for the preview follows the same naming scheme with PreviewChanged - Operations now actually verify that they're enabled (This was originally supposed to be done in the loop in Preview(), but this way seems nicer since it also removes the error label when the operation is disabled) - The foundation has been laid to make it very easy to add more operations --- BFR/MainWindow.xaml | 56 +++++++++++++++++++++++++++++------ BFR/MainWindow.xaml.cs | 34 +++++++++++++++++++-- BFR/MainWindowUIProperties.cs | 7 +++++ BFR/Operations/Operation.cs | 8 +++-- 4 files changed, 91 insertions(+), 14 deletions(-) diff --git a/BFR/MainWindow.xaml b/BFR/MainWindow.xaml index 001aa27..01bcc86 100644 --- a/BFR/MainWindow.xaml +++ b/BFR/MainWindow.xaml @@ -2,6 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ops="clr-namespace:BFR.Operations;assembly=BFR" mc:Ignorable="d" MinWidth="720" MinHeight="480" x:Class="BFR.MainWindow" Title="BFR"> @@ -16,13 +17,13 @@ - + - + - + - + @@ -51,16 +52,16 @@ - + - -