mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
@@ -9,10 +9,7 @@ namespace Wox.ViewModel
|
||||
|
||||
protected void OnPropertyChanged(string propertyName)
|
||||
{
|
||||
if (null != PropertyChanged)
|
||||
{
|
||||
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
@@ -37,10 +34,7 @@ namespace Wox.ViewModel
|
||||
|
||||
public virtual void Execute(object parameter)
|
||||
{
|
||||
if (null != _action)
|
||||
{
|
||||
_action(parameter);
|
||||
}
|
||||
_action?.Invoke(parameter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user