public static string LoadPlugins(string strPath) { if (!System.IO.Directory.Exists(strPath)) { return("不存在路径:\r\n" + strPath); } string strRet = string.Empty; foreach (var v in System.IO.Directory.GetFiles(strPath, "*.dll")) { try { List <IPlugins.IFilter> lst = FrmCapture.GetInterface(v); if (lst.Count == 0) { continue; } if (lst != null) { m_dic_plugin.Add(System.IO.Path.GetFileNameWithoutExtension(v), lst); } } catch (Exception ex) { strRet += v + "\r\n" + ex.Message + "\r\n"; } } return(strRet == string.Empty ? "OK" : strRet); }
private void _ScreenRecorder_RecordError(object sender, RecordErrorEventArgs e) { if (FrmCapture.RecordError != null) { FrmCapture.RecordError(FrmCapture.ScreenRecorder, e); } }