diff --git a/ENI2/App.xaml.cs b/ENI2/App.xaml.cs index 24c2b9ae..522c317e 100644 --- a/ENI2/App.xaml.cs +++ b/ENI2/App.xaml.cs @@ -91,7 +91,7 @@ namespace ENI2 // Preload validation fields List vFields = bsmd.database.ValidationRule.ValidationFields; RuleEngine.RegisterLocodeChecker(Util.GlobalStructures.IsValidLocode); - RuleEngine.RegisterPortAreaChecker(LocalizedLookup.PortAreaExists); + RuleEngine.RegisterPortAreaChecker(bsmd.database.PortArea.PortAreaExists); RuleEngine.RegisterNationalityChecker(LocalizedLookup.CheckNationality); // Register expandable Properties diff --git a/ENI2/Controls/PortAreaControl.xaml b/ENI2/Controls/PortAreaControl.xaml new file mode 100644 index 00000000..a86f8731 --- /dev/null +++ b/ENI2/Controls/PortAreaControl.xaml @@ -0,0 +1,124 @@ + + + + + + +