コード例 #1
0
        private void Button_ClickExport(object sender, RoutedEventArgs e)
        {
            try
            {
                List <CheckInfo> list = ToolData.Record.CheckList;

                for (int i = 0; i < list.Count; i++)
                {
                    if (list[i].IsCheck)
                    {
                        ExcelTool.ExportExcel(list[i].FilePath, ToolData.Record.ExportPath + "\\" + list[i].ExportName + ".txt");
                    }
                }
            }
            catch (Exception ex)
            {
                System.Windows.MessageBox.Show(ex.ToString());
            }
            finally
            {
                System.Windows.MessageBox.Show("导出完成");
            }
        }