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