/// <summary> /// Instantiates a new instance of the class /// </summary> /// <param name="iScannerPanel">The scanner Form object</param> public ScannerCommon(IScannerPanel iScannerPanel) { ScannerForm = iScannerPanel.Form; StartupArg = null; _scannerPanel = iScannerPanel; ScannerForm.ShowInTaskbar = false; PositionSizeController = new ScannerPositionSizeController(this); TextController = new TextController(); KeepTalkWindowActive = false; _syncLock = new SyncLock(); var scannerStatusBar = (ScannerForm is ISupportsStatusBar) ? ((ISupportsStatusBar)ScannerForm).ScannerStatusBar : null; StatusBarController = new StatusBarController(scannerStatusBar); }
/// <summary> /// Instantiates a new instance of the class /// </summary> /// <param name="iScannerPanel">The scanner Form object</param> public ScannerCommon(IScannerPanel iScannerPanel) { ScannerForm = iScannerPanel.Form; StartupArg = null; _scannerPanel = iScannerPanel; ScannerForm.ShowInTaskbar = false; PositionSizeController = new ScannerPositionSizeController(this); TextController = new TextController(); KeepTalkWindowActive = false; HideScannerOnIdle = CoreGlobals.AppPreferences.HideScannerOnIdle; _syncLock = new SyncLock(); }