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>(); }
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()); }
public SettingMgr(ILogMgr logMgr) { _logMgr = logMgr; _logger = _logMgr.GetLogger("SettingMgr"); _Culture = CultureInfo.CreateSpecificCulture("en-En"); _logger.Info("Create."); }
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>(); }
public OraDBSettingReadWriter(IDbMgr DBMgr, ILogMgr logMgr) { _DBMgr = DBMgr; _logMgr = logMgr; _logger = _logMgr.GetLogger("DBSettingReadWriter"); CreateDBCommands(); _settingsList = new List <SettingData>(); }
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>(); }
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(); }
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."); }
public ServiceMgrImpl(ILogMgr logMgr) { _logMgr = logMgr; _logger = _logMgr.GetLogger("ServiceMgrImpl"); _logger.Info("Create."); }
public EventMgr(ILogMgr logMgr) { _logMgr = logMgr; _logger = _logMgr.GetLogger("EventMgr"); _logger.Info("Create."); }
public PlugginMgr(ILogMgr logMgr) { _logMgr = logMgr; _logger = _logMgr.GetLogger("PlugginMgr"); _logger.Info("Create."); }