public static void ExportAllSelectedExcelToXml()
 {
     ExportData((item, sheetName) =>
     {
         ExcelReader excelReader = new ExcelReader(item, sheetName);
         Excel2Xml.GenXml(excelReader);
         Excel2Xml.GenCS(excelReader);
     });
 }
Example #2
0
        private void ShowExportXml()
        {
            GUIStyle headStyle = GUIHelper.MakeHeader();

            GUILayout.Label("导出Xml(支持大多数类型)", headStyle);
            EditorGUILayout.Space();

            GUILayout.BeginHorizontal();
            if (GUILayout.Button("导出Xml", GUILayout.Width(100)))
            {
                Excel2Xml.GenXml(excelReader);
            }
            if (GUILayout.Button("导出XmlData.cs", GUILayout.Width(100)))
            {
                Excel2Xml.GenCS(excelReader);
            }
            GUILayout.EndHorizontal();

            if (GUILayout.Button("全部导出", GUILayout.Width(100)))
            {
                Excel2Xml.GenXml(excelReader);
                Excel2Xml.GenCS(excelReader);
            }
        }