diff options
| author | Roy <Roy.mail.net@gmail.com> | 2022-10-03 17:23:39 +0300 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2022-10-03 17:23:39 +0300 |
| commit | 7486c4b6585aaf20f31c52cbd958325dcecc0277 (patch) | |
| tree | 0fb5aa9d68ae6bdf5fc4585710743861c3203d35 /Software/Visual_Studio/Tango.BL | |
| parent | 6577b5da46b2f6aaa5724f43334fa7eedd99b05d (diff) | |
| download | Tango-7486c4b6585aaf20f31c52cbd958325dcecc0277.tar.gz Tango-7486c4b6585aaf20f31c52cbd958325dcecc0277.zip | |
Prevent Remote Machine Access
Diffstat (limited to 'Software/Visual_Studio/Tango.BL')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/DTO/UserDTOBase.cs | 8 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/UserBase.cs | 38 |
2 files changed, 46 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/DTO/UserDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/UserDTOBase.cs index 33b5991e3..e7c601830 100644 --- a/Software/Visual_Studio/Tango.BL/DTO/UserDTOBase.cs +++ b/Software/Visual_Studio/Tango.BL/DTO/UserDTOBase.cs @@ -85,5 +85,13 @@ namespace Tango.BL.DTO get; set; } + /// <summary> + /// prevent remote machine access + /// </summary> + public Boolean PreventRemoteMachineAccess + { + get; set; + } + } } diff --git a/Software/Visual_Studio/Tango.BL/Entities/UserBase.cs b/Software/Visual_Studio/Tango.BL/Entities/UserBase.cs index eb6eae4f7..511deced6 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/UserBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/UserBase.cs @@ -37,6 +37,8 @@ namespace Tango.BL.Entities public event EventHandler<Boolean> PasswordChangeRequiredChanged; + public event EventHandler<Boolean> PreventRemoteMachineAccessChanged; + public event EventHandler<SynchronizedObservableCollection<ActionLog>> ActionLogsChanged; public event EventHandler<Address> AddressChanged; @@ -270,6 +272,33 @@ namespace Tango.BL.Entities } } + protected Boolean _preventremotemachineaccess; + + /// <summary> + /// Gets or sets the userbase prevent remote machine access. + /// </summary> + + [Column("PREVENT_REMOTE_MACHINE_ACCESS")] + + public Boolean PreventRemoteMachineAccess + { + get + { + return _preventremotemachineaccess; + } + + set + { + if (_preventremotemachineaccess != value) + { + _preventremotemachineaccess = value; + + OnPreventRemoteMachineAccessChanged(value); + + } + } + } + protected SynchronizedObservableCollection<ActionLog> _actionlogs; /// <summary> @@ -587,6 +616,15 @@ namespace Tango.BL.Entities } /// <summary> + /// Called when the PreventRemoteMachineAccess has changed. + /// </summary> + protected virtual void OnPreventRemoteMachineAccessChanged(Boolean preventremotemachineaccess) + { + PreventRemoteMachineAccessChanged?.Invoke(this, preventremotemachineaccess); + RaisePropertyChanged(nameof(PreventRemoteMachineAccess)); + } + + /// <summary> /// Called when the ActionLogs has changed. /// </summary> protected virtual void OnActionLogsChanged(SynchronizedObservableCollection<ActionLog> actionlogs) |
