Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private void _ScreenRecorder_RecordError(object sender, RecordErrorEventArgs e)
 {
     if (FrmCapture.RecordError != null)
     {
         FrmCapture.RecordError(FrmCapture.ScreenRecorder, e);
     }
 }