WPF endgültiv vorbereitet

This commit is contained in:
HuskyTeufel
2021-05-05 13:49:59 +02:00
parent 3d3de440ec
commit f66815fda5
7 changed files with 12 additions and 6 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
@@ -10,7 +11,7 @@ namespace GuiWPF
public abstract class ViewModelBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string propertyName)
protected void OnPropertyChanged([CallerMemberName]string propertyName = "")
{
this.OnPropertyChanged(new PropertyChangedEventArgs(propertyName));
}