Example #1
0
        public RunForm()
        {
            InitializeComponent();

            m_ArmControler = ArmControler.GetInstance();

            for (int i = 0; i < (int)SysAlarm.Type.Max; i++)
            {
                m_SysAlarmState[i] = false;
            }

            TimerCheckAllStatus.Start();
        }
Example #2
0
 /// <summary>
 /// 定义公有方法提供一个全局访问点,同时你也可以定义公有属性来提供全局访问点
 /// </summary>
 /// <returns></returns>
 public static ArmControler GetInstance()
 {
     if (m_UniqueIo == null)
     {
         lock (m_Locker)
         {
             if (m_UniqueIo == null)
             {
                 m_UniqueIo = new ArmControler();
             }
         }
     }
     return(m_UniqueIo);
 }