From 50eb034ac96858dbed48924e39ca4af51b087fc7 Mon Sep 17 00:00:00 2001 From: Jordan Wages Date: Thu, 5 Jul 2018 02:00:37 -0500 Subject: [PATCH] Saving Configurations to Files --- butterflow-ui/AboutWindow.xaml | 2 +- butterflow-ui/ButterflowSubregion.cs | 6 +++ butterflow-ui/MainWindow.xaml | 7 +--- butterflow-ui/MainWindow.xaml.cs | 38 ++++++++++++++---- butterflow-ui/OptionsConfiguration.cs | 49 +++++++++++++++++++++-- butterflow-ui/OptionsConfigurationFile.cs | 32 +++++++++++++++ butterflow-ui/OptionsWindow.xaml.cs | 6 ++- butterflow-ui/PropertyChangedAlerter.cs | 11 +++++ butterflow-ui/butterflow-ui.csproj | 1 + 9 files changed, 133 insertions(+), 19 deletions(-) create mode 100644 butterflow-ui/OptionsConfigurationFile.cs diff --git a/butterflow-ui/AboutWindow.xaml b/butterflow-ui/AboutWindow.xaml index d591b52..555d00d 100644 --- a/butterflow-ui/AboutWindow.xaml +++ b/butterflow-ui/AboutWindow.xaml @@ -13,7 +13,7 @@ - + diff --git a/butterflow-ui/ButterflowSubregion.cs b/butterflow-ui/ButterflowSubregion.cs index c40926c..cc1ef56 100644 --- a/butterflow-ui/ButterflowSubregion.cs +++ b/butterflow-ui/ButterflowSubregion.cs @@ -7,6 +7,7 @@ using System.Threading.Tasks; namespace butterflow_ui { /// A butterflow video subregion. Represents a snippet of a video on which butterflow will act. + [Serializable] public class ButterflowSubregion : PropertyChangedAlerter { #region Members @@ -111,6 +112,11 @@ namespace butterflow_ui { return this.identifier; } + private set + { + this.identifier = value; + OnPropertyChanged(); + } } #endregion diff --git a/butterflow-ui/MainWindow.xaml b/butterflow-ui/MainWindow.xaml index 21804d4..24e0cf0 100644 --- a/butterflow-ui/MainWindow.xaml +++ b/butterflow-ui/MainWindow.xaml @@ -39,11 +39,6 @@ - - - - - @@ -127,7 +122,7 @@ -