Inheritance: ILoggerFacade
Example #1
0
        public Shell(IModuleManager moduleManager, IModuleTracker moduleTracker, CallbackLogger logger)
        {
            if( moduleManager==null ) 
                throw new ArgumentNullException("moduleManager");
            _moduleManager = moduleManager;

            if( moduleTracker==null )
                throw new ArgumentNullException("moduleTracker");
            _moduleTracker = moduleTracker;

            if( logger==null )
                throw new ArgumentNullException("logger");
            _logger = logger;

            InitializeComponent();
        }
Example #2
0
        public Shell(IModuleManager moduleManager, IModuleTracker moduleTracker, CallbackLogger logger)
        {
            if (moduleManager == null)
                throw new ArgumentNullException("moduleManager");
            _moduleManager = moduleManager;

            if (moduleTracker == null)
                throw new ArgumentNullException("moduleTracker");
            _moduleTracker = moduleTracker;

            if (logger == null)
                throw new ArgumentNullException("logger");
            _logger = logger;

            DataContext = _moduleTracker;

            _moduleManager.LoadModuleCompleted += PageLoadModuleCompleted;
            _moduleManager.ModuleDownloadProgressChanged += PageModuleDownloadProgressChanged;

            InitializeComponent();            
        }