Remove harder coded text

1. Remove harder coded text, part of refactoring for PR #494
2. Remove other arguments redundant
This commit is contained in:
bao-qian
2016-02-27 00:09:12 +00:00
parent 49ca3bfd00
commit c00583dd98
4 changed files with 17 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Input;
namespace Wox.ViewModel
@@ -7,7 +8,7 @@ namespace Wox.ViewModel
public class BaseViewModel : INotifyPropertyChanged
{
protected void OnPropertyChanged(string propertyName)
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}