static void Main(string[] args)
        {
            Console.Write("Test Xmlgenerate.");
            Console.Write("\n==========\n");
            string[] list = Directory.GetFiles("..\\..\\..\\Repository\\test1");

            xmlgenerator xg = new xmlgenerator();

            xg.author    = "QuanfengDu";
            xg.toolChain = "MSBuild";
            xg.directory = this.dirrc;
            foreach (string it in list) //insert element to the request structure
            {
                if (it.Contains("Driver"))
                {
                    xg.dict.Add(it, new List <string>());
                    foreach (string iter in list)
                    {
                        if (iter.Contains("Driver"))
                        {
                            continue;
                        }
                        else
                        {
                            xg.dict[it].Add(iter);
                        }
                    }
                    break;
                }
            }
            xg.makeRequest();
            xg.saveXml("../../../request/" + xg.author + ".xml");
        }
        /*----< generate the request file >-------------*/
        public void generaterequest(object sender, RoutedEventArgs e)
        {
            List <string> list = new List <string>();

            foreach (string item in selectedFiles.Items)
            {
                list.Add(item.ToString());
            }
            xmlgenerator xg = new xmlgenerator();

            xg.author    = "QuanfengDu" + (num++).ToString();
            xg.toolChain = "MSBuild";
            xg.directory = this.dirrc;
            foreach (string it in list) //insert element to the request structure
            {
                if (it.Contains("Driver"))
                {
                    xg.dict.Add(it, new List <string>());
                    foreach (string iter in list)
                    {
                        if (iter.Contains("Driver"))
                        {
                            continue;
                        }
                        else
                        {
                            xg.dict[it].Add(iter);
                        }
                    }
                    break;
                }
            }
            xg.makeRequest();
            xg.saveXml("../../../request/" + xg.author + ".xml");
            Console.Write("\n\n  file {0}.xml generate in ..\\..\\..\\request", xg.author);
        }