public bool Initialize(StartupArg startupArg) { PanelClass = startupArg.PanelClass; _startupArg = startupArg; _scannerCommon = new ScannerCommon(this); _scannerCommon.PositionSizeController.AutoPosition = false; if (!_scannerCommon.Initialize(startupArg)) { MessageBox.Show("Could not initialize form " + Name); return(false); } _rootWidget = _scannerCommon.GetRootWidget(); _dockScanner = new DockScanner(startupArg.HWnd, this); _autoScanTimer = new AutoScanTimer(startupArg.HWnd, this); _autoScanTimer.EvtStart += new EventHandler(_autoScanTimer_EvtStart); _autoScanTimer.EvtStop += new EventHandler(_autoScanTimer_EvtStop); _autoScanTimer.EvtTick += new EventHandler(_autoScanTimer_EvtTick); return(true); }
public bool Initialize(StartupArg startupArg) { PanelClass = startupArg.PanelClass; _startupArg = startupArg; _scannerCommon = new ScannerCommon(this); _scannerCommon.PositionSizeController.AutoPosition = false; if (!_scannerCommon.Initialize(startupArg)) { MessageBox.Show("Could not initialize form " + Name); return false; } _rootWidget = _scannerCommon.GetRootWidget(); _dockScanner = new DockScanner(startupArg.HWnd, this); _autoScanTimer = new AutoScanTimer(startupArg.HWnd, this); _autoScanTimer.EvtStart += new EventHandler(_autoScanTimer_EvtStart); _autoScanTimer.EvtStop += new EventHandler(_autoScanTimer_EvtStop); _autoScanTimer.EvtTick += new EventHandler(_autoScanTimer_EvtTick); return true; }