public Command(NetViewModelBase viewModel, Action <object> action) { this.viewModel = viewModel; this.action = action; viewModel.PropertyChanged += OnModelPropertyChanged; }
public Command(NetViewModelBase viewModel, Action action) : this(viewModel, o => action()) { }