public void ExportDetailsTest2()
 {
     DataTableExport target = new DataTableExport(Arch.CFramework.Utility.DataTableExport.AppType.Win);  
     DataTable DetailsTable = DT;
     int[] ColumnList = new int[] { 0, 1, 2, 3 };
     string[] Headers = new string[] { "Name", "Age", "Account", "Birth" };
     DataTableExport.ExportFormat FormatType = new DataTableExport.ExportFormat();  
     string FileName = @"c:\2.xml";
     target.ExportDetails(DetailsTable, ColumnList, FormatType, FileName); 
 }
        public void CreateStylesheetTest()
        { 
            //var array = new Tuple<int, string, string, int>[4];
            //array[0] = new Tuple<int, string, string, int>(1, "David", "Smith", 10000);
            //array[1] = new Tuple<int, string, string, int>(3, "Mark", "Drinkwater", 30000);
            //array[2] = new Tuple<int, string, string, int>(4, "Norah", "Miller", 20000);
            //array[3] = new Tuple<int, string, string, int>(12, "Cecil", "Walker", 120000); 

            DataTableExport_Accessor target = new DataTableExport_Accessor(Arch.CFramework.Utility.DataTableExport.AppType.Win);  
            
            using (StringWriter str = new StringWriter())
            using (XmlTextWriter writer = new XmlTextWriter(str))
            {
                string[] sHeaders = new string[] { "姓名", "年龄", "总计", "生日" };
                string[] sFileds = new string[] { "姓名", "年龄", "总计", "生日" };
                DataTableExport.ExportFormat FormatType = new DataTableExport.ExportFormat();
                target.CreateStylesheet(writer, sHeaders, sFileds, FormatType);
            }
        }