| 123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using System.Collections;
- using Core.Mes.Client.Comm.Server;
- using Core.Mes.Client.Comm;
- namespace Core.Mes.Client.Comm.Server
- {
- public partial class FlileDeletecomm
- {
- public static bool FlileDelete(string pathName)
- {
- if (MessageBox.Show("是否确定要进行删除操作", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
- {
- bool isSuccess = Core.Mes.Client.Comm.Server.FileHelper.Delete(pathName); ;
- if (isSuccess)
- {
- MessageBox.Show("删除成功", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
- }
- else
- {
- throw new MESException("服务端处理失败!");
- }
- }
- return true;
- }
- }
- }
|