public void BuildUpdateConfigFile(string path)
        {
            system = new FileUpdateInfo(path);
            FileNodeItems.Clear();
            FileNodeItem fnItem = BuildUpdateConfigFile(system.Files);

            if (fnItem != null)
            {
                FileNodeItems.Add(fnItem);
            }
        }
        private FileNodeItem BuildUpdateConfigFile(MyDirectory dir)
        {
            string functionName = "BuildUpdateConfigFile";

            try
            {
                FileNodeItem item = new FileNodeItem();
                item.ListWritDate  = DateTime.Parse(dir.LastUpdate);
                item.Name          = dir.Name;
                item.Version       = dir.Version;
                item.IsCanSelected = false;
                item.ToolTip       = string.Format("文件夹  日期:{0}   版本:{1}", dir.ToString(), dir.Version);
                foreach (FileSimpleInfo file in dir.Files)
                {
                    FileNodeItem child = new FileNodeItem();
                    child.IsCanSelected = true;
                    child.ListWritDate  = file.ModifyDateTime;
                    child.Name          = file.Name;
                    child.Version       = file.Version;
                    child.ToolTip       = string.Format("文件  日期:{0}  版本:{1}", file.ModifyDateTime, file.Version);
                    item.Nodes.Add(child);
                }
                foreach (MyDirectory directory in dir.Directories)
                {
                    FileNodeItem child = new FileNodeItem();
                    item.Nodes.Add(BuildUpdateConfigFile(directory));
                }
                return(item);
            }
            catch (AMS.Model.CustomerException ex)
            {
                ErrorMessage = string.Format("{0} 出自{1}.{2}", ex.Message, ex.ErrorSourcesClass, ex.ErrorSourcesFunction);
                return(null);
            }
            catch (Exception ex)
            {
                ErrorMessage = string.Format("{0} 出自{1}.{2}", ex.Message, CLASSNAME, functionName);
                return(null);
            }
        }