Exemple #1
0
        private void btnMerge_Click(object sender, RoutedEventArgs e)
        {
            if (!Directory.Exists(dirPath))
            {
                WinMessageBox.Show("请选择一个有效的文件夹");
                return;
            }

            if (ExcelHelper.GetAvailableExcelCount(dirPath) == 0)
            {
                WinMessageBox.Show("当前文件夹中没有Excel文件");
                return;
            }

            Merger.Instance.Start(dirPath);//合并开始
        }
Exemple #2
0
 /// <summary>
 /// 显示错误一旦发生
 /// </summary>
 /// <param name="error"></param>
 private void ShowError(string error)
 {
     WinMessageBox.Show(error);
 }