public static bool CheckFileName(System.Windows.Forms.Control Control, string message) { // 返回值 bool returnValue = true; string fileName = Control.Text; if (!ValidateUtil.CheckFileName(fileName)) { MessageBox.Show(message, AppMessage.MSG0000, MessageBoxButtons.OK, MessageBoxIcon.Information); Control.Focus(); returnValue = false; } return(returnValue); }