public bool InitialHardWare() { context = Context.GetInstance(); string[] AxisFilePath = context.ControlCard.ModuleInformation.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries); ControlcardObj = RefelectionHelper.CreatRefelectObj <IAxisCard>(AxisFilePath[0], AxisFilePath[1]); ControlcardObj.ShowLog = PrinterLog; if (!ControlcardObj.InitialAxisCard()) { PrinterLog("初始化轴卡失败!!", WriteLogType.Error); return(false); } PrinterLog("轴卡初始化成功!!", WriteLogType.Action); return(true); }