public ConnectInfoForm() { XmlConfigurator.Configure(); var settings = new NinjectSettings() { LoadExtensions = false }; this.mKernel = new StandardKernel( settings, new Log4NetModule(), new ReportServerRepositoryModule()); //this.mKernel.Load<FuncModule>(); this.mLoggerFactory = this.mKernel.Get<ILoggerFactory>(); this.mFileSystem = this.mKernel.Get<IFileSystem>(); this.mLogger = this.mLoggerFactory.GetCurrentClassLogger(); InitializeComponent(); this.LoadSettings(); // Create the DebugForm and hide it if debug is False this.mDebugForm = new DebugForm(); this.mDebugForm.Show(); if (!this.mDebug) this.mDebugForm.Hide(); }
public ConnectInfoForm() { XmlConfigurator.Configure(); var settings = new NinjectSettings() { LoadExtensions = false }; this.mKernel = new StandardKernel( settings, new Log4NetModule(), new ReportServerRepositoryModule()); //this.mKernel.Load<FuncModule>(); this.mLoggerFactory = this.mKernel.Get <ILoggerFactory>(); this.mFileSystem = this.mKernel.Get <IFileSystem>(); this.mLogger = this.mLoggerFactory.GetCurrentClassLogger(); InitializeComponent(); this.LoadSettings(); // Create the DebugForm and hide it if debug is False this.mDebugForm = new DebugForm(); this.mDebugForm.Show(); if (!this.mDebug) { this.mDebugForm.Hide(); } }