private void frmTestTC_IPCC_Load(object sender, EventArgs e) { #region 制厂商SDK bool isSDKOK = false; string msg = ""; string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); string sourceOfSDK = Path.Combine(path, @"TC-IPCC");; try { isSDKOK = FileAdapter.CopyDir(sourceOfSDK, path, true); if (!isSDKOK) { msg = "无法加载厂商SDK"; } } catch (Exception ex) { isSDKOK = false; msg = ex.Message; } finally { if (!isSDKOK) { gbInit.Enabled = gbMonitor.Enabled = gbCore.Enabled = gbConf.Enabled = gbSMS.Enabled = isSDKOK; MessageBoxAdapter.ShowDebug(msg); } } #endregion }