From 225aa1499e37faf9d38257caabbadc68d78b427e Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 12:29:41 -0300 Subject: decompiler.com --- .../ErrorDialogViewModel.cs | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Decompiler/Gestor.Application.ViewModels.Generic/ErrorDialogViewModel.cs (limited to 'Decompiler/Gestor.Application.ViewModels.Generic/ErrorDialogViewModel.cs') diff --git a/Decompiler/Gestor.Application.ViewModels.Generic/ErrorDialogViewModel.cs b/Decompiler/Gestor.Application.ViewModels.Generic/ErrorDialogViewModel.cs new file mode 100644 index 0000000..66e554c --- /dev/null +++ b/Decompiler/Gestor.Application.ViewModels.Generic/ErrorDialogViewModel.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using Gestor.Application.Helpers; + +namespace Gestor.Application.ViewModels.Generic; + +public class ErrorDialogViewModel : DialogViewModel, INotifyPropertyChanged +{ + private List> _erros; + + public List> Erros + { + get + { + List> list = new List>(); + foreach (KeyValuePair erro in _erros) + { + list.Add(new KeyValuePair(erro.Key.ToUpper(), erro.Value.ToUpper())); + } + return list; + } + set + { + this.MutateVerbose(ref _erros, value, RaisePropertyChanged(), "Erros"); + } + } + + public new event PropertyChangedEventHandler PropertyChanged; + + private Action RaisePropertyChanged() + { + return delegate(PropertyChangedEventArgs args) + { + this.PropertyChanged?.Invoke(this, args); + }; + } +} -- cgit v1.2.3