diff --git a/.vs/LotteryApplication/DesignTimeBuild/.dtbcache.v2 b/.vs/LotteryApplication/DesignTimeBuild/.dtbcache.v2 index d20f4fc..3a0e49b 100644 Binary files a/.vs/LotteryApplication/DesignTimeBuild/.dtbcache.v2 and b/.vs/LotteryApplication/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/LotteryApplication/v17/.futdcache.v1 b/.vs/LotteryApplication/v17/.futdcache.v1 index f316c39..f7bdda3 100644 Binary files a/.vs/LotteryApplication/v17/.futdcache.v1 and b/.vs/LotteryApplication/v17/.futdcache.v1 differ diff --git a/.vs/LotteryApplication/v17/.suo b/.vs/LotteryApplication/v17/.suo index 5b40fb1..e6aac06 100644 Binary files a/.vs/LotteryApplication/v17/.suo and b/.vs/LotteryApplication/v17/.suo differ diff --git a/LotteryApplication/Core/ObservableObject.cs b/LotteryApplication/Core/ObservableObject.cs deleted file mode 100644 index ba5e788..0000000 --- a/LotteryApplication/Core/ObservableObject.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Runtime.CompilerServices; -using System.Text; -using System.Threading.Tasks; - -namespace LotteryApplication.Core -{ - internal class ObservableObject : INotifyPropertyChanged - { - public event PropertyChangedEventHandler? PropertyChanged; - - public void OnPropertychanged([CallerMemberName] string name = null) - { - PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name)); - } - } -} diff --git a/LotteryApplication/Core/RelayCommand.cs b/LotteryApplication/Core/RelayCommand.cs deleted file mode 100644 index f773604..0000000 --- a/LotteryApplication/Core/RelayCommand.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Input; - -namespace LotteryApplication.Core -{ - internal class RelayCommand : ICommand - { - private Action _execute; - private Func _canExecute; - - public event EventHandler CanExecuteChanged - { - add { CommandManager.RequerySuggested += value; } - remove { CommandManager.RequerySuggested -= value; } - } - - public RelayCommand(Action execute, Func canExecute = null) - { - _execute = execute; - _canExecute = canExecute; - } - - public bool CanExecute(object parameter) - { - return _canExecute == null || _canExecute(parameter); - } - - public void Execute(object parameter) - { - _execute(parameter); - } - } -} diff --git a/LotteryApplication/LotteryApplication.csproj b/LotteryApplication/LotteryApplication.csproj index f04e377..d84cec8 100644 --- a/LotteryApplication/LotteryApplication.csproj +++ b/LotteryApplication/LotteryApplication.csproj @@ -11,13 +11,6 @@ - - - - - - - diff --git a/LotteryApplication/MainWindow.xaml b/LotteryApplication/MainWindow.xaml index b761328..509dcb5 100644 --- a/LotteryApplication/MainWindow.xaml +++ b/LotteryApplication/MainWindow.xaml @@ -21,7 +21,6 @@ - @@ -32,10 +31,12 @@ + +