summaryrefslogtreecommitdiff
path: root/Decompiler/Gestor.Application.ViewModels.Generic/DialogViewModel.cs
diff options
context:
space:
mode:
authorLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 15:29:41 +0000
committerLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 15:29:41 +0000
commit225aa1499e37faf9d38257caabbadc68d78b427e (patch)
tree102bb7a40c58595348ae9d3c7076201759fe0720 /Decompiler/Gestor.Application.ViewModels.Generic/DialogViewModel.cs
parent1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 (diff)
downloadgestor-225aa1499e37faf9d38257caabbadc68d78b427e.tar.gz
gestor-225aa1499e37faf9d38257caabbadc68d78b427e.zip
decompiler.com
Diffstat (limited to 'Decompiler/Gestor.Application.ViewModels.Generic/DialogViewModel.cs')
-rw-r--r--Decompiler/Gestor.Application.ViewModels.Generic/DialogViewModel.cs78
1 files changed, 78 insertions, 0 deletions
diff --git a/Decompiler/Gestor.Application.ViewModels.Generic/DialogViewModel.cs b/Decompiler/Gestor.Application.ViewModels.Generic/DialogViewModel.cs
new file mode 100644
index 0000000..c9b9595
--- /dev/null
+++ b/Decompiler/Gestor.Application.ViewModels.Generic/DialogViewModel.cs
@@ -0,0 +1,78 @@
+using System;
+using System.ComponentModel;
+using System.Windows;
+using Gestor.Application.Helpers;
+
+namespace Gestor.Application.ViewModels.Generic;
+
+public class DialogViewModel : INotifyPropertyChanged
+{
+ private string _message;
+
+ private string _acceptContent;
+
+ private string _cancelContent;
+
+ private Visibility _cancelVisibility;
+
+ public string Message
+ {
+ get
+ {
+ return _message;
+ }
+ set
+ {
+ this.MutateVerbose(ref _message, value, RaisePropertyChanged(), "Message");
+ }
+ }
+
+ public string AcceptContent
+ {
+ get
+ {
+ return _acceptContent;
+ }
+ set
+ {
+ this.MutateVerbose(ref _acceptContent, value, RaisePropertyChanged(), "AcceptContent");
+ }
+ }
+
+ public string CancelContent
+ {
+ get
+ {
+ return _cancelContent;
+ }
+ set
+ {
+ CancelVisibility = (Visibility)(string.IsNullOrEmpty(value) ? 2 : 0);
+ this.MutateVerbose(ref _cancelContent, value, RaisePropertyChanged(), "CancelContent");
+ }
+ }
+
+ public Visibility CancelVisibility
+ {
+ get
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ return _cancelVisibility;
+ }
+ set
+ {
+ //IL_0007: Unknown result type (might be due to invalid IL or missing references)
+ this.MutateVerbose(ref _cancelVisibility, value, RaisePropertyChanged(), "CancelVisibility");
+ }
+ }
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ private Action<PropertyChangedEventArgs> RaisePropertyChanged()
+ {
+ return delegate(PropertyChangedEventArgs args)
+ {
+ this.PropertyChanged?.Invoke(this, args);
+ };
+ }
+}