Exemple #1
0
        private void btnViewFileNameList_Click(object sender, EventArgs e)
        {
            try
            {
                UIInProcess(true);

                FileProcessBaseClass fileProcBase = new FileProcessBaseClass();
                fileProcBase.SetFileSelectParm(this.GetFormFileSelParm());
                string fileList = fileProcBase.LoadFileList();

                UIInProcess(false);

                if (fileList.Length > 0)
                {
                    using (formTextMessage frmMessage = new formTextMessage("文件列表预览", fileList, true))
                    {
                        frmMessage.ShowDialog(this);
                    }
                }
            }
            catch (Exception ex)
            {
                CommFunction.WriteMessage(ex.Message);
            }
            finally
            {
                UIInProcess(false);
            }
        }
        private void btnViewFileNameList_Click(object sender, EventArgs e)
        {
            try {
                UIInProcess(true);

                FileProcessBaseClass fileProcBase = new FileProcessBaseClass();
                fileProcBase.SetFileSelectParm(this.GetFormFileSelParm());
                string fileList = fileProcBase.LoadFileList();

                UIInProcess(false);

                if (fileList.Length > 0) {
                    using (formTextMessage frmMessage = new formTextMessage("文件列表预览", fileList, true)) {
                        frmMessage.ShowDialog(this);
                    }
                }
            }
            catch (Exception ex) {
                CommFunction.WriteMessage(ex.Message);
            }
            finally {
                UIInProcess(false);
            }
        }