From 52b7e10da10b7fc345a03753cd167e3cede3b7fb Mon Sep 17 00:00:00 2001 From: Eveldee Date: Sat, 4 Dec 2021 15:27:04 +0100 Subject: [PATCH] Add Generate button --- ExeLauncher.GUI/ApplicationModel.cs | 4 +- ExeLauncher.GUI/ExeLauncher.GUI.csproj | 3 +- ExeLauncher.GUI/MainWindow.xaml | 1 + ExeLauncher.GUI/MainWindow.xaml.cs | 78 +++++++++++++++++++++++++- 4 files changed, 79 insertions(+), 7 deletions(-) diff --git a/ExeLauncher.GUI/ApplicationModel.cs b/ExeLauncher.GUI/ApplicationModel.cs index 2aa5a52..821ea36 100644 --- a/ExeLauncher.GUI/ApplicationModel.cs +++ b/ExeLauncher.GUI/ApplicationModel.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace ExeLauncher.GUI { - public record ApplicationModel : INotifyPropertyChanged + public class ApplicationModel : INotifyPropertyChanged { private int _number = 1; public int Number @@ -70,7 +70,7 @@ namespace ExeLauncher.GUI } } - public event PropertyChangedEventHandler? PropertyChanged; + public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged([CallerMemberName] string propertyName = "") { diff --git a/ExeLauncher.GUI/ExeLauncher.GUI.csproj b/ExeLauncher.GUI/ExeLauncher.GUI.csproj index c39acf1..b0b11fa 100644 --- a/ExeLauncher.GUI/ExeLauncher.GUI.csproj +++ b/ExeLauncher.GUI/ExeLauncher.GUI.csproj @@ -2,8 +2,7 @@ WinExe - net6.0-windows - enable + net48 true diff --git a/ExeLauncher.GUI/MainWindow.xaml b/ExeLauncher.GUI/MainWindow.xaml index c3f1af3..4d5cb0f 100644 --- a/ExeLauncher.GUI/MainWindow.xaml +++ b/ExeLauncher.GUI/MainWindow.xaml @@ -13,6 +13,7 @@