Subversion Repositories SoapBoxCore

Rev

Rev 8 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8 Rev 17
Line 29... Line 29...
29
#endregion
29
#endregion
30
       
30
       
31
using System;
31
using System;
32
using System.Collections.Generic;
32
using System.Collections.Generic;
33
using System.ComponentModel;
33
using System.ComponentModel;
-
 
34
using System.ComponentModel.Composition;
34
 
35
 
35
namespace SoapBox.Core
36
namespace SoapBox.Core
36
{
37
{
-
 
38
    [Export(SoapBox.Core.ExtensionPoints.Host.Void, typeof(Object))] // us to load so we get MEF to run
37
    public abstract class AbstractViewModel : IViewModel
39
    public class AbstractViewModel : IViewModel
38
    {
40
    {
-
 
41
        #region " logger singleton "
-
 
42
        /// <summary>
-
 
43
        /// Anyone who inherits from AbstractViewModel gets a free
-
 
44
        /// reference to the logging service.
-
 
45
        /// </summary>
-
 
46
        [Import(Services.Logging.LoggingService, typeof(ILoggingService))]
-
 
47
        protected ILoggingService logger
-
 
48
        {
-
 
49
            get
-
 
50
            {
-
 
51
                return m_logger;
-
 
52
            }
-
 
53
            set
-
 
54
            {
-
 
55
                m_logger = value;
-
 
56
            }
-
 
57
        }
-
 
58
        private static ILoggingService m_logger = null;
-
 
59
        #endregion
-
 
60
 
39
        #region " Implement INotifyPropertyChanged "
61
        #region " Implement INotifyPropertyChanged "
40
        /// <summary>
62
        /// <summary>
41
        /// Call this method to raise the PropertyChanged event when
63
        /// Call this method to raise the PropertyChanged event when
42
        /// a property changes.  Note that you should use the
64
        /// a property changes.  Note that you should use the
43
        /// NotifyPropertyChangedHelper class to create a cached
65
        /// NotifyPropertyChangedHelper class to create a cached