diff --git a/ENI-2/ENI2/ENI2/DetailRootControl.xaml.cs b/ENI-2/ENI2/ENI2/DetailRootControl.xaml.cs index f6948c27..8329016c 100644 --- a/ENI-2/ENI2/ENI2/DetailRootControl.xaml.cs +++ b/ENI-2/ENI2/ENI2/DetailRootControl.xaml.cs @@ -6,12 +6,14 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.Windows.Controls; +using System.Windows; +using System.Windows.Data; using bsmd.database; using ENI2.DetailViewControls; using ENI2.Util; -using System.Windows; -using System.Windows.Data; + +using ENI2.EditControls; namespace ENI2 { @@ -375,6 +377,24 @@ namespace ENI2 } } } + + // Show error and violation dialog + if(this._vErrors.Count > 0) + { + ErrorListDialog eld = new ErrorListDialog(); + eld.IsModal = false; + eld.Errors = this._vErrors; + eld.Show(); + } + + if(this._vViolations.Count > 0) + { + ViolationListDialog vld = new ViolationListDialog(); + vld.IsModal = false; + vld.Violations = this._vViolations; + vld.Show(); + } + } #endregion diff --git a/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml b/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml index a48b97a4..b1e81ee3 100644 --- a/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml +++ b/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml @@ -87,17 +87,17 @@ - - @@ -32,7 +32,7 @@ -