protected ManagementFormContextBaseVM(string title, FrameworkElement viewContext, IRepository <T> repository) : base(title, viewContext) { Repository = repository; ErrorsChanged += (s, e) => UserDialog.ConfirmError(Validator.ErrorCollection[e.PropertyName], e.PropertyName); }