public Initialize ( ACAT.Lib.Core.PanelManagement.StartupArg startupArg ) : bool | ||
startupArg | ACAT.Lib.Core.PanelManagement.StartupArg | startup arguments |
return | bool |
public bool Initialize(StartupArg startupArg)
{
PanelClass = startupArg.PanelClass;
_scannerCommon = new ScannerCommon(_scannerPanel);
_scannerHelper = new ScannerHelper(_scannerPanel, startupArg);
if (!_scannerCommon.Initialize(startupArg))
{
Log.Debug("Could not initialize form " + _form.Name);
return false;
}
_rootWidget = _scannerCommon.GetRootWidget();
return true;
}
/// <summary> /// Intitializes the class /// </summary> /// <param name="startupArg">startup params</param> /// <returns>true on cussess</returns> public bool Initialize(StartupArg startupArg) { _alphabetScannerCommon = new AlphabetScannerCommon(this); _alphabetScannerCommon.EvtFormatPreditionWord += _alphabetScannerCommon_EvtFormatPreditionWord; bool retVal = _alphabetScannerCommon.Initialize(startupArg); if (retVal) { ScannerCommon.CreateStatusBar(); } return retVal; }