Example #1
0
 public override void OnDelete(WindowDeleteEventArg e)
 {
     if (DataContext is IDeletableViewModel vm)
     {
         vm.DeleteCommand.Execute(EventArgs.Empty);
     }
     base.OnDelete(e);
 }
 /// <summary>
 /// Deletes all directory classification fields
 /// </summary>
 /// <param name="e"></param>
 public override void OnDelete(WindowDeleteEventArg e)
 {
     directoryClassificationFieldService.DeleteAll(this.ViewModel.Model);
     base.OnDelete(e);
 }