Пример #1
0
        public ViewFormMgr(XtraForm parentForm, Bar statusBar, ILogMgr logMgr)
        {
            _logMgr = logMgr;
            _logger = _logMgr.GetLogger("ViewFormMgr");
            _logger.Info("Create.");

            if (parentForm == null)
            {
                throw new ArgumentNullException("ParentForm can not be null.");
            }
            if (statusBar == null)
            {
                throw new ArgumentNullException("StatusBar can not be null.");
            }
            if (logMgr == null)
            {
                throw new ArgumentNullException("LogMgr can not be null.");
            }

            _statusBar = statusBar;
            _statusBarButtonController = new StatusBarButtonController(statusBar);
            _statusBarButtonController.ButtonClickEvent += new ButtonClickDelegate(OnStatusBarButtonClick);
            _parentForm = parentForm;
            _views      = new Dictionary <IdentKey, ViewData>();
        }
Пример #2
0
        static void Main()
        {
            Bootstrapper boot = new Bootstrapper();

            boot.Run();

            IServiceMgr serviceMgr = ServiceMgr.Current;
            IPlugginMgr plugMgr    = serviceMgr.GetInstance <IPlugginMgr>();
            ILogMgr     logMgr     = serviceMgr.GetInstance <ILogMgr>();
            ILogger     logger     = logMgr.GetLogger("Main");

            serviceMgr.AddInstance <ILogger>(logger);

            foreach (IPluggin plug in plugMgr.Pluggins)
            {
                logger.Info(plug.Name);
            }

            serviceMgr.Trace();
            ILogger l = serviceMgr.GetInstance <ILogger>();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }
Пример #3
0
 public SettingMgr(ILogMgr logMgr)
 {
     _logMgr  = logMgr;
     _logger  = _logMgr.GetLogger("SettingMgr");
     _Culture = CultureInfo.CreateSpecificCulture("en-En");
     _logger.Info("Create.");
 }
Пример #4
0
        public ViewRegionBase(string regionName, DocumentManager documentManager, DockManager dockManager, ILogMgr logMgr)
        {
            _regionName      = regionName;
            _logMgr          = logMgr;
            _logger          = _logMgr.GetLogger(_regionName);
            _documentManager = documentManager;
            _dockManager     = dockManager;
            _logger.Info("Create.");

            if (string.IsNullOrEmpty(regionName))
            {
                throw new ArgumentNullException("RegionName can not be null or empty.");
            }
            if (documentManager == null)
            {
                throw new ArgumentNullException("DocumentManager  can not be null.");
            }
            if (dockManager == null)
            {
                throw new ArgumentNullException("dockManager  can not be null.");
            }
            if (logMgr == null)
            {
                throw new ArgumentNullException("logMgr can not be null.");
            }

            _views       = new Dictionary <IdentKey, IView>();
            _activeViews = new Dictionary <IdentKey, IView>();
        }
Пример #5
0
 public OraDBSettingReadWriter(IDbMgr DBMgr, ILogMgr logMgr)
 {
     _DBMgr  = DBMgr;
     _logMgr = logMgr;
     _logger = _logMgr.GetLogger("DBSettingReadWriter");
     CreateDBCommands();
     _settingsList = new List <SettingData>();
 }
Пример #6
0
 public RegionMgr(ILogMgr logMgr)
 {
     _logMgr = logMgr;
     _logger = _logMgr.GetLogger("RegionMgr");
     _logger.Info("Create.");
     _ViewRegions    = new Dictionary <string, IViewRegion>();
     _CommandRegions = new Dictionary <string, ICommandRegion>();
     _RegionNames    = new List <string>();
 }
Пример #7
0
        public OraDBMgr(IDbConnection connection, ILogMgr logMgr)
        {
            if (connection == null)
            {
                throw new ArgumentNullException("connection");
            }
            if (logMgr == null)
            {
                throw new ArgumentNullException("logMgr");
            }

            _dbConnection = connection;
            _logMgr       = logMgr;
            _logger       = _logMgr.GetLogger("OraDBMgr");
            _logger.Info("Create.");

            InitAdditionalService();
        }
Пример #8
0
        public MessageBoxMgr(XtraForm parentForm, ILogMgr logMgr, SplashScreenManager splashScreenMgr, Type waitFormType)
        {
            if (parentForm == null)
            {
                throw new ArgumentNullException("ParentForm param can not be null.");
            }
            if (logMgr == null)
            {
                throw new ArgumentNullException("LogMgr param can not be null.");
            }
            if (logMgr == null)
            {
                throw new ArgumentNullException("SplashScreenMgr param can not be null.");
            }
            //if (splashScreenMgr.ActiveSplashFormTypeInfo == null) throw new ArgumentNullException("SplashScreenManager can not have null ActiveSplashFormTypeInfo property.");

            _parentForm      = parentForm;
            _logMgr          = logMgr;
            _splashScreenMgr = splashScreenMgr;
            _waitFormType    = waitFormType;
            _logger          = _logMgr.GetLogger("MessageBoxMgr");
            _logger.Info("Create.");
        }
Пример #9
0
 public DocumentViewRegion(string regionName, DocumentManager documentManager, DockManager dockManager, ILogMgr logMgr) :
     base(regionName, documentManager, dockManager, logMgr)
 {
     SubscribeToEvent();
 }
Пример #10
0
 public ServiceMgrImpl(ILogMgr logMgr, CompositionContainer compositionContainer)
     : this(logMgr)
 {
     this._compositionContainer = compositionContainer;
 }
Пример #11
0
 public ServiceMgrImpl(ILogMgr logMgr)
 {
     _logMgr = logMgr;
     _logger = _logMgr.GetLogger("ServiceMgrImpl");
     _logger.Info("Create.");
 }
Пример #12
0
 public EventMgr(ILogMgr logMgr)
 {
     _logMgr = logMgr;
     _logger = _logMgr.GetLogger("EventMgr");
     _logger.Info("Create.");
 }
Пример #13
0
 public PlugginMgr(ILogMgr logMgr)
 {
     _logMgr = logMgr;
     _logger = _logMgr.GetLogger("PlugginMgr");
     _logger.Info("Create.");
 }