/// <summary>
        /// 执行保存已经修改的ConfigInfo
        /// </summary>
        /// <param name="configInfo">传入configInfo实例对象</param>
        /// <param name="xmlConfigPath">修改的xml文件</param>
        /// <returns></returns>
        public string SaveConfig(ConfigInfo configInfo, string xmlConfigPath)
        {
            string modifyPath = "preferences";
            string result     = "";
            var    value      = new Dictionary <string, string>();

            value.Add("SvnPath", configInfo.Svnpath);
            value.Add("UpdateInterval", configInfo.Updateinterval);
            value.Add("StandarOutput", configInfo.StandarOutput);
            value.Add("ServiceSwitch", configInfo.ServiceSwitch);
            value.Add("ReportFrom", configInfo.ReportFrom);
            value.Add("Password", configInfo.Password);
            value.Add("MailHost", configInfo.SmtpServer);
            value.Add("ReportTo", configInfo.ReportTo);
            try
            {
                XmlDao   xmlDao   = new XmlDao();
                XElement xElement = xmlDao.SelectOneXElement(null, xmlConfigPath, modifyPath);
                result = xmlDao.ModifyXNode(value, xElement, xmlConfigPath);
                return(result);
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
                result = "failed";
                return(result);
            }
        }
 /// <summary>
 /// 激活或者关闭项目
 /// </summary>
 /// <param name="project">传入的项目对象</param>
 /// <param name="property">传入的筛选条件</param>
 /// <param name="nodePath">路径</param>
 /// <param name="xmlConfigPath">节点名字</param>
 /// <returns></returns>
 public string ActiveClose(Dictionary <string, string> project, Dictionary <string, string> property, string nodePath, string xmlConfigPath)
 {
     try
     {
         XElement xElement = dao.SelectOneXElement(project, xmlConfigPath, nodePath);
         dao.XNodeAttributes(property, xElement, xmlConfigPath);
         return("successful");
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message);
         return("failed");
     }
 }