public RootKernel(bool firstInstance) { CommandLineArgumentManager.Instance.ParseArguments(Environment.GetCommandLineArgs()); VideoTypeManager.LoadVideoReaders(); CameraTypeManager.LoadCameraManagers(); ToolManager.LoadTools(); BuildSubTree(); mainWindow = new KinoveaMainWindow(this, firstInstance); NotificationCenter.RecentFilesChanged += NotificationCenter_RecentFilesChanged; NotificationCenter.FullScreenToggle += NotificationCenter_FullscreenToggle; NotificationCenter.StatusUpdated += (s, e) => statusLabel.Text = e.Status; NotificationCenter.PreferenceTabAsked += NotificationCenter_PreferenceTabAsked; log.Debug("Plug sub modules at UI extension points (Menus, ToolBars, StatusBAr, Windows)."); ExtendMenu(mainWindow.menuStrip); ExtendToolBar(mainWindow.toolStrip); ExtendStatusBar(mainWindow.statusStrip); ExtendUI(); log.Debug("Register global services offered at Root level."); Services.FormsHelper.SetMainForm(mainWindow); }
public RootKernel() { log.Debug("Loading video readers."); List <Type> videoReaders = new List <Type>(); videoReaders.Add(typeof(Video.Bitmap.VideoReaderBitmap)); videoReaders.Add(typeof(Video.FFMpeg.VideoReaderFFMpeg)); videoReaders.Add(typeof(Video.GIF.VideoReaderGIF)); videoReaders.Add(typeof(Video.SVG.VideoReaderSVG)); videoReaders.Add(typeof(Video.Synthetic.VideoReaderSynthetic)); VideoTypeManager.LoadVideoReaders(videoReaders); log.Debug("Loading camera managers."); List <Type> cameraManagers = new List <Type>(); cameraManagers.Add(typeof(Camera.Basler.CameraManagerBasler)); cameraManagers.Add(typeof(Camera.Daheng.CameraManagerDaheng)); cameraManagers.Add(typeof(Camera.DirectShow.CameraManagerDirectShow)); cameraManagers.Add(typeof(Camera.FrameGenerator.CameraManagerFrameGenerator)); cameraManagers.Add(typeof(Camera.HTTP.CameraManagerHTTP)); cameraManagers.Add(typeof(Camera.IDS.CameraManagerIDS)); CameraTypeManager.LoadCameraManagers(cameraManagers); log.Debug("Loading tools."); ToolManager.LoadTools(); BuildSubTree(); mainWindow = new KinoveaMainWindow(this); NotificationCenter.RecentFilesChanged += NotificationCenter_RecentFilesChanged; NotificationCenter.FullScreenToggle += NotificationCenter_FullscreenToggle; NotificationCenter.StatusUpdated += (s, e) => statusLabel.Text = e.Status; NotificationCenter.PreferenceTabAsked += NotificationCenter_PreferenceTabAsked; log.Debug("Plug sub modules at UI extension points (Menus, Toolbars, Statusbar, Windows)."); ExtendMenu(mainWindow.menuStrip); ExtendToolBar(mainWindow.toolStrip); ExtendStatusBar(mainWindow.statusStrip); ExtendUI(); log.Debug("Register global services offered at Root level."); Services.FormsHelper.SetMainForm(mainWindow); }