Index: Core/Common/src/Core.Common.Base/Observable.cs =================================================================== diff -u -rad04a3f7bc413808f2d8b8f7ac60270e794dd133 -rcf4f947febf6a8d92379094230ca4bade46a87d0 --- Core/Common/src/Core.Common.Base/Observable.cs (.../Observable.cs) (revision ad04a3f7bc413808f2d8b8f7ac60270e794dd133) +++ Core/Common/src/Core.Common.Base/Observable.cs (.../Observable.cs) (revision cf4f947febf6a8d92379094230ca4bade46a87d0) @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Linq; namespace Core.Common.Base @@ -8,7 +9,7 @@ /// public abstract class Observable : IObservable { - private readonly IList observers = new List(); + private readonly ICollection observers = new Collection(); public void Attach(IObserver observer) { Index: Core/Common/src/Core.Common.Base/ObservableList.cs =================================================================== diff -u -rad04a3f7bc413808f2d8b8f7ac60270e794dd133 -rcf4f947febf6a8d92379094230ca4bade46a87d0 --- Core/Common/src/Core.Common.Base/ObservableList.cs (.../ObservableList.cs) (revision ad04a3f7bc413808f2d8b8f7ac60270e794dd133) +++ Core/Common/src/Core.Common.Base/ObservableList.cs (.../ObservableList.cs) (revision cf4f947febf6a8d92379094230ca4bade46a87d0) @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Linq; namespace Core.Common.Base @@ -9,7 +10,7 @@ /// The type of elements in the list. public class ObservableList : List, IObservable { - private readonly IList observers = new List(); + private readonly ICollection observers = new Collection(); public void Attach(IObserver observer) { Index: Core/Common/src/Core.Common.Base/Plugin/ApplicationCore.cs =================================================================== diff -u -rad04a3f7bc413808f2d8b8f7ac60270e794dd133 -rcf4f947febf6a8d92379094230ca4bade46a87d0 --- Core/Common/src/Core.Common.Base/Plugin/ApplicationCore.cs (.../ApplicationCore.cs) (revision ad04a3f7bc413808f2d8b8f7ac60270e794dd133) +++ Core/Common/src/Core.Common.Base/Plugin/ApplicationCore.cs (.../ApplicationCore.cs) (revision cf4f947febf6a8d92379094230ca4bade46a87d0) @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Linq; using Core.Common.Base.IO; using Core.Common.Utils.Reflection; @@ -11,14 +12,14 @@ /// public class ApplicationCore : IDisposable { - private readonly List plugins; + private readonly ICollection plugins; /// /// Constructs a new . /// public ApplicationCore() { - plugins = new List(); + plugins = new Collection(); } /// Index: Core/Common/src/Core.Common.Base/Properties/Resources.Designer.cs =================================================================== diff -u -rd10ce32a6631b4b73ca5d87f51cf16fa2ee5f1c0 -rcf4f947febf6a8d92379094230ca4bade46a87d0 --- Core/Common/src/Core.Common.Base/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision d10ce32a6631b4b73ca5d87f51cf16fa2ee5f1c0) +++ Core/Common/src/Core.Common.Base/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision cf4f947febf6a8d92379094230ca4bade46a87d0) @@ -61,29 +61,29 @@ } /// - /// Looks up a localized string similar to Uitvoeren van '{0}' is mislukt.. + /// Looks up a localized string similar to Uitvoeren van '{0}' is geannuleerd.. /// - internal static string Activity_Finish_Execution_of_0_has_failed { + internal static string Activity_Finish_Execution_of_ActivityName_0_has_been_cancelled { get { - return ResourceManager.GetString("Activity_Finish_Execution_of_0_has_failed", resourceCulture); + return ResourceManager.GetString("Activity_Finish_Execution_of_ActivityName_0_has_been_cancelled", resourceCulture); } } /// - /// Looks up a localized string similar to Uitvoeren van '{0}' is gelukt.. + /// Looks up a localized string similar to Uitvoeren van '{0}' is mislukt.. /// - internal static string Activity_Finish_Execution_of_0_has_succeeded { + internal static string Activity_Finish_Execution_of_ActivityName_0_has_failed { get { - return ResourceManager.GetString("Activity_Finish_Execution_of_0_has_succeeded", resourceCulture); + return ResourceManager.GetString("Activity_Finish_Execution_of_ActivityName_0_has_failed", resourceCulture); } } /// - /// Looks up a localized string similar to Uitvoeren van '{0}' is geannuleerd.. + /// Looks up a localized string similar to Uitvoeren van '{0}' is gelukt.. /// - internal static string Activity_Run_Execution_of_0_has_been_cancelled { + internal static string Activity_Finish_Execution_of_ActivityName_0_has_succeeded { get { - return ResourceManager.GetString("Activity_Run_Execution_of_0_has_been_cancelled", resourceCulture); + return ResourceManager.GetString("Activity_Finish_Execution_of_ActivityName_0_has_succeeded", resourceCulture); } } Index: Core/Common/src/Core.Common.Base/Properties/Resources.resx =================================================================== diff -u -rd10ce32a6631b4b73ca5d87f51cf16fa2ee5f1c0 -rcf4f947febf6a8d92379094230ca4bade46a87d0 --- Core/Common/src/Core.Common.Base/Properties/Resources.resx (.../Resources.resx) (revision d10ce32a6631b4b73ca5d87f51cf16fa2ee5f1c0) +++ Core/Common/src/Core.Common.Base/Properties/Resources.resx (.../Resources.resx) (revision cf4f947febf6a8d92379094230ca4bade46a87d0) @@ -117,13 +117,13 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + Uitvoeren van '{0}' is geannuleerd. - + Uitvoeren van '{0}' is gelukt. - + Uitvoeren van '{0}' is mislukt. Index: Core/Common/src/Core.Common.Base/Service/Activity.cs =================================================================== diff -u -r5914abad7fec8a4bf5634acaf15571b7c195f677 -rcf4f947febf6a8d92379094230ca4bade46a87d0 --- Core/Common/src/Core.Common.Base/Service/Activity.cs (.../Activity.cs) (revision 5914abad7fec8a4bf5634acaf15571b7c195f677) +++ Core/Common/src/Core.Common.Base/Service/Activity.cs (.../Activity.cs) (revision cf4f947febf6a8d92379094230ca4bade46a87d0) @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using Core.Common.Base.Properties; using log4net; @@ -16,7 +17,7 @@ public abstract class Activity { /// - /// Event handler for notifying progress changes. + /// Event for notifying progress changes. /// public event EventHandler ProgressChanged; @@ -30,7 +31,7 @@ protected Activity() { State = ActivityState.None; - LogMessages = new List(); + LogMessages = new Collection(); } /// @@ -62,12 +63,12 @@ } /// - /// Gets or sets the collection of log messages of the (which can be appended while performing the ). + /// Gets or sets the collection of log messages of the (which are appended while performing the ). /// /// /// Derived classes themselves are responsible for clearing the collection of log messages. /// - public IList LogMessages { get; private set; } + public ICollection LogMessages { get; private set; } /// /// This method resets to and then runs the . @@ -103,17 +104,17 @@ if (State == ActivityState.Finished) { - log.InfoFormat(Resources.Activity_Finish_Execution_of_0_has_succeeded, Name); + log.InfoFormat(Resources.Activity_Finish_Execution_of_ActivityName_0_has_succeeded, Name); } if (State == ActivityState.Cancelled) { - log.WarnFormat(Resources.Activity_Run_Execution_of_0_has_been_cancelled, Name); + log.WarnFormat(Resources.Activity_Finish_Execution_of_ActivityName_0_has_been_cancelled, Name); } if (State == ActivityState.Failed) { - log.ErrorFormat(Resources.Activity_Finish_Execution_of_0_has_failed, Name); + log.ErrorFormat(Resources.Activity_Finish_Execution_of_ActivityName_0_has_failed, Name); } }