diff --git a/Sources/Linaris/App.xaml.cs b/Sources/Linaris/App.xaml.cs index 32a6c67..f840c49 100644 --- a/Sources/Linaris/App.xaml.cs +++ b/Sources/Linaris/App.xaml.cs @@ -21,6 +21,10 @@ public partial class App : Application { var Window = base.CreateWindow(activationState); + Window.Stopped += (sender, eventArgs) => { + Manager.SaveSerialization(); + }; + const int newHeight = 900; const int newWidth = 1800; const int minHeight = 800; diff --git a/Sources/Linaris/Converters.cs b/Sources/Linaris/Converters.cs new file mode 100644 index 0000000..f55ecc2 --- /dev/null +++ b/Sources/Linaris/Converters.cs @@ -0,0 +1,22 @@ +using System; + +namespace Linaris.Converters +{ + public class InverseBooleanConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + if (value is bool boolValue) + { + return !boolValue; + } + + return value; + } + + public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/Sources/Linaris/Linaris.csproj b/Sources/Linaris/Linaris.csproj index 6dd909a..1c75113 100644 --- a/Sources/Linaris/Linaris.csproj +++ b/Sources/Linaris/Linaris.csproj @@ -34,7 +34,7 @@ - + diff --git a/Sources/Linaris/LocalFilesPage.xaml b/Sources/Linaris/LocalFilesPage.xaml index 155a70b..b0676cc 100644 --- a/Sources/Linaris/LocalFilesPage.xaml +++ b/Sources/Linaris/LocalFilesPage.xaml @@ -1,12 +1,17 @@ + + + + @@ -15,16 +20,50 @@ - - - + + + + + + + + + + +