alielie
2025-10-13 e3868d4d61ded0e76fc8fe3fdacdd9e6d9113cf1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
 
namespace HMI.Simple.Util
{
    public class AlarmUtil
    {
        public static bool CreateAlarm(string alarmContent, out string msg)
        {
            msg = string.Empty;
            try
            {
                using (var helper = new MSMQHelper("HMI_Alarm"))
                {
                    helper.Send("Alarm", alarmContent);
                    return true;
                }
            }
            catch (Exception ex)
            {
                msg = ex.Message;
                return false;
            }
        }
    }
}