/// <summary>
        /// 序列化数据
        /// </summary>
        /// <returns>序列化数据值</returns>
        public static Class_SearchConfig Deserialize(byte[] data)
        {
            MemoryStream ms = new MemoryStream();

            ms.Write(data, 0, data.Length);
            XmlSerializer serializer = new XmlSerializer(typeof(Class_SearchConfig));

            ms.Position = 0;
            Class_SearchConfig config;

            try
            {
                config = serializer.Deserialize(ms) as Class_SearchConfig;
            }
            catch
            {
                config = new Class_SearchConfig();
            }
            finally
            {
                ms.Close();
                ms.Dispose();
            }
            return(config);
        }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <returns>筛选记录对象</returns>
        public static Class_SearchConfig NewSearchConfig()
        {
            Class_SearchConfig config = new Class_SearchConfig();

            config.LoadFromUI();
            return(config);
        }
        /// <summary>
        /// 序列化数据
        /// </summary>
        /// <returns>序列化数据值</returns>
        public static byte[] Serializer(Class_SearchConfig config)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(Class_SearchConfig));
            MemoryStream  ms         = new MemoryStream();

            serializer.Serialize(ms, config);
            byte[] data = ms.ToArray();
            ms.Close();
            ms.Dispose();
            return(data);
        }