Пример #1
0
 /// <summary>
 /// Calls the InitDeviceTags method of the device.
 /// </summary>
 public void InitDeviceTags()
 {
     try
     {
         DeviceLogic.InitDeviceTags();
     }
     catch (Exception ex)
     {
         log.WriteException(ex, CommPhrases.ErrorInDevice, nameof(InitDeviceTags), DeviceLogic.Title);
     }
 }
Пример #2
0
        /// <summary>
        /// Calls the InitDeviceTags method of the device.
        /// </summary>
        public void InitDeviceTags()
        {
            try
            {
                DeviceLogic.InitDeviceTags();

                if (DeviceLogic.DeviceTags.UseStatusTag)
                {
                    DeviceLogic.DeviceTags.AddStatusTag();
                }
            }
            catch (Exception ex)
            {
                log.WriteError(ex, CommPhrases.ErrorInDevice, nameof(InitDeviceTags), DeviceLogic.Title);
            }
        }