Index: Core/Common/src/Core.Common.Base/ObservableUniqueItemCollectionWithSourcePath.cs
===================================================================
diff -u -r56ac4eb28f5fcc5b20117474e9e4030399d6806a -r4c93a7304d2790d347cc65847ee82f4d600fce96
--- Core/Common/src/Core.Common.Base/ObservableUniqueItemCollectionWithSourcePath.cs (.../ObservableUniqueItemCollectionWithSourcePath.cs) (revision 56ac4eb28f5fcc5b20117474e9e4030399d6806a)
+++ Core/Common/src/Core.Common.Base/ObservableUniqueItemCollectionWithSourcePath.cs (.../ObservableUniqueItemCollectionWithSourcePath.cs) (revision 4c93a7304d2790d347cc65847ee82f4d600fce96)
@@ -47,9 +47,9 @@
/// A function to retrieve the unique feature of the items it stores.
/// The description of the item that is validated.
/// The description of the feature of the item to be validated on.
- public ObservableUniqueItemCollectionWithSourcePath(Func getUniqueFeature,
- string typeDescriptor,
- string featureDescription)
+ protected ObservableUniqueItemCollectionWithSourcePath(Func getUniqueFeature,
+ string typeDescriptor,
+ string featureDescription)
{
if (getUniqueFeature == null)
{
Index: Core/Common/src/Core.Common.Gui/ExceptionDialog.cs
===================================================================
diff -u -rd372f6daa918d18feb719e78d5fdc315f2a1b0f5 -r4c93a7304d2790d347cc65847ee82f4d600fce96
--- Core/Common/src/Core.Common.Gui/ExceptionDialog.cs (.../ExceptionDialog.cs) (revision d372f6daa918d18feb719e78d5fdc315f2a1b0f5)
+++ Core/Common/src/Core.Common.Gui/ExceptionDialog.cs (.../ExceptionDialog.cs) (revision 4c93a7304d2790d347cc65847ee82f4d600fce96)
@@ -20,7 +20,6 @@
// All rights reserved.
using System;
-using System.Drawing;
using System.Windows.Forms;
using Core.Common.Controls.Dialogs;
using Core.Common.Gui.Commands;
Index: Core/Common/src/Core.Common.Gui/Forms/MainWindow/MainWindow.xaml.cs
===================================================================
diff -u -r7ac739bd142fda419737a1e3ce328f373ab3531f -r4c93a7304d2790d347cc65847ee82f4d600fce96
--- Core/Common/src/Core.Common.Gui/Forms/MainWindow/MainWindow.xaml.cs (.../MainWindow.xaml.cs) (revision 7ac739bd142fda419737a1e3ce328f373ab3531f)
+++ Core/Common/src/Core.Common.Gui/Forms/MainWindow/MainWindow.xaml.cs (.../MainWindow.xaml.cs) (revision 4c93a7304d2790d347cc65847ee82f4d600fce96)
@@ -476,7 +476,7 @@
private void FillContextualGroupsFromRibbonComponent(Ribbon ribbonControl)
{
foreach (RibbonContextualTabGroup group in ribbonControl.ContextualGroups.Where(
- group => Ribbon.ContextualGroups.All(g => g.Name != @group.Name)))
+ group => Ribbon.ContextualGroups.All(g => g.Name != group.Name)))
{
Ribbon.ContextualGroups.Add(group);
}
Index: Core/Common/src/Core.Common.Utils/IOUtils.cs
===================================================================
diff -u -r7ac739bd142fda419737a1e3ce328f373ab3531f -r4c93a7304d2790d347cc65847ee82f4d600fce96
--- Core/Common/src/Core.Common.Utils/IOUtils.cs (.../IOUtils.cs) (revision 7ac739bd142fda419737a1e3ce328f373ab3531f)
+++ Core/Common/src/Core.Common.Utils/IOUtils.cs (.../IOUtils.cs) (revision 4c93a7304d2790d347cc65847ee82f4d600fce96)
@@ -74,7 +74,7 @@
{
try
{
- string fullPath = GetFullPath(path);
+ GetFullPath(path);
}
catch (ArgumentException exception)
{
Index: Core/Common/src/Core.Common.Utils/Reflection/TypeUtils.cs
===================================================================
diff -u -r7ac739bd142fda419737a1e3ce328f373ab3531f -r4c93a7304d2790d347cc65847ee82f4d600fce96
--- Core/Common/src/Core.Common.Utils/Reflection/TypeUtils.cs (.../TypeUtils.cs) (revision 7ac739bd142fda419737a1e3ce328f373ab3531f)
+++ Core/Common/src/Core.Common.Utils/Reflection/TypeUtils.cs (.../TypeUtils.cs) (revision 4c93a7304d2790d347cc65847ee82f4d600fce96)
@@ -45,7 +45,7 @@
/// is an invalid value for .
public static string GetDisplayName(TEnumType enumValue) where TEnumType : IConvertible
{
- string valueString = enumValue.ToString();
+ string valueString = enumValue.ToString(CultureInfo.InvariantCulture);
FieldInfo fieldInfo = typeof(TEnumType).GetField(valueString);
if (fieldInfo == null)
{
Index: Core/Common/test/Core.Common.IO.Test/Readers/SqLiteDatabaseReaderBaseTest.cs
===================================================================
diff -u -r7ac739bd142fda419737a1e3ce328f373ab3531f -r4c93a7304d2790d347cc65847ee82f4d600fce96
--- Core/Common/test/Core.Common.IO.Test/Readers/SqLiteDatabaseReaderBaseTest.cs (.../SqLiteDatabaseReaderBaseTest.cs) (revision 7ac739bd142fda419737a1e3ce328f373ab3531f)
+++ Core/Common/test/Core.Common.IO.Test/Readers/SqLiteDatabaseReaderBaseTest.cs (.../SqLiteDatabaseReaderBaseTest.cs) (revision 4c93a7304d2790d347cc65847ee82f4d600fce96)
@@ -112,7 +112,7 @@
public void Constructor_FileNullOrEmpty_ThrowsCriticalFileReadException(string fileName)
{
// Setup
- string expectedMessage = $"Fout bij het lezen van bestand '{fileName}': {"bestandspad mag niet leeg of ongedefinieerd zijn."}";
+ string expectedMessage = $"Fout bij het lezen van bestand '{fileName}': bestandspad mag niet leeg of ongedefinieerd zijn.";
// Call
TestDelegate test = () => new TestReader(fileName).Dispose();
Index: Core/Common/test/Core.Common.Utils.Test/Drawing/ColorAccessTest.cs
===================================================================
diff -u -r7ac739bd142fda419737a1e3ce328f373ab3531f -r4c93a7304d2790d347cc65847ee82f4d600fce96
--- Core/Common/test/Core.Common.Utils.Test/Drawing/ColorAccessTest.cs (.../ColorAccessTest.cs) (revision 7ac739bd142fda419737a1e3ce328f373ab3531f)
+++ Core/Common/test/Core.Common.Utils.Test/Drawing/ColorAccessTest.cs (.../ColorAccessTest.cs) (revision 4c93a7304d2790d347cc65847ee82f4d600fce96)
@@ -93,8 +93,10 @@
ColorAccess colorAccess = ColorAccess.Create(Resources.Black2x2);
// Call
- Color c;
- TestDelegate call = () => c = colorAccess[x, y];
+ TestDelegate call = () =>
+ {
+ Color c = colorAccess[x, y];
+ };
// Assert
var message = "Index must be in range x:[0,1], y:[0,1].";
Index: Core/Components/src/Core.Components.BruTile.IO/AsyncTileFetcher.cs
===================================================================
diff -u -r7ac739bd142fda419737a1e3ce328f373ab3531f -r4c93a7304d2790d347cc65847ee82f4d600fce96
--- Core/Components/src/Core.Components.BruTile.IO/AsyncTileFetcher.cs (.../AsyncTileFetcher.cs) (revision 7ac739bd142fda419737a1e3ce328f373ab3531f)
+++ Core/Components/src/Core.Components.BruTile.IO/AsyncTileFetcher.cs (.../AsyncTileFetcher.cs) (revision 4c93a7304d2790d347cc65847ee82f4d600fce96)
@@ -125,11 +125,11 @@
// Notes: http://dotspatial.codeplex.com/discussions/473428
threadPool.Cancel(false);
- int dummy;
foreach (KeyValuePair request in activeTileRequests.ToArray())
{
if (!openTileRequests.ContainsKey(request.Key))
{
+ int dummy;
if (!activeTileRequests.TryRemove(request.Key, out dummy))
{
activeTileRequests.TryRemove(request.Key, out dummy);
Index: Core/Components/test/Core.Components.DotSpatial.Test/Layer/BruTile/BruTileLayerTest.cs
===================================================================
diff -u -r7ac739bd142fda419737a1e3ce328f373ab3531f -r4c93a7304d2790d347cc65847ee82f4d600fce96
--- Core/Components/test/Core.Components.DotSpatial.Test/Layer/BruTile/BruTileLayerTest.cs (.../BruTileLayerTest.cs) (revision 7ac739bd142fda419737a1e3ce328f373ab3531f)
+++ Core/Components/test/Core.Components.DotSpatial.Test/Layer/BruTile/BruTileLayerTest.cs (.../BruTileLayerTest.cs) (revision 4c93a7304d2790d347cc65847ee82f4d600fce96)
@@ -189,10 +189,9 @@
// Setup
const string authorityCode = "EPSG:28992";
var extent = new Extent(10000, 123456, 987654321, 321654);
- const string legendText = "A";
var mocks = new MockRepository();
- IConfiguration configuration = CreateStubConfiguration(mocks, authorityCode, extent, legendText);
+ IConfiguration configuration = CreateStubConfiguration(mocks, authorityCode, extent);
mocks.ReplayAll();
// Call
@@ -902,7 +901,7 @@
IConfiguration configuration = CreateStubConfiguration(mocks);
mocks.ReplayAll();
- using (var layer = new BruTileLayer(configuration)
+ using (new BruTileLayer(configuration)
{
MapFrame = mapFrame
})
@@ -1081,8 +1080,7 @@
private static IConfiguration CreateStubConfiguration(MockRepository mocks,
string tileSchemaSrsString = "EPSG:28992",
- Extent tileSourceExtent = new Extent(),
- string legendText = "