public FileAuthenticationViewModel() { PropertyChanged += async(s, e) => { switch (e.PropertyName) { case "Password": if (Hash != null) { await VerifyPassword(); } TransformTask = new NotifyTaskCompletion(TransformFile); break; } }; }
public void Execute(object parameter) { Execution = new NotifyTaskCompletion(task?.Invoke()); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Execution")); }