diff options
| author | Roy <roy.mail.net@gmail.com> | 2017-12-16 17:37:29 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2017-12-16 17:37:29 +0200 |
| commit | e95ade818a640ba17f7da58bc6df58442e591c8a (patch) | |
| tree | 0e97883c4d5cae80513a51d3e630fadc7700ad5c /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs | |
| parent | b57f99763d0f53e4bda9afd47841e9245784c224 (diff) | |
| download | Tango-e95ade818a640ba17f7da58bc6df58442e591c8a.tar.gz Tango-e95ade818a640ba17f7da58bc6df58442e591c8a.zip | |
Added all configuration relations ApplicationVersions... VMs to DB Module.
Improved notification message box sizing.
DB Module tables order by.
Implemented dependent entities checking on entity delete.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs index b0a261dd0..6c6e1733f 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs @@ -155,11 +155,11 @@ namespace Tango.MachineStudio.DB.ViewModels { using (_notification.PushTaskItem("Saving changes to database...")) { - int count = SelectedEntity.GetDependentEntitiesCount(); + var dependenctEntities = SelectedEntity.GetDependentEntitiesNameAndGuid(); - if (count > 0) + if (dependenctEntities.Count > 0) { - _notification.ShowError("The selected entity is being used by " + count + " other entities." + Environment.NewLine + "Please delete any dependencies and try again."); + _notification.ShowError("The selected entity is being used by " + dependenctEntities.Count + " other entities." + Environment.NewLine + "Please delete any dependencies and try again." + Environment.NewLine + Environment.NewLine + String.Join(Environment.NewLine,dependenctEntities.Select(x => x.Key + ", ID: " + x.Value))); return; } |
