示例#1
0
        public void Refresh()
        {
            ConnectableItemChanged?.Invoke(
                new ConnectableItemChangingContext(null, ItemModifyingTypeEnum.Refresh));
            foreach (var item in ConnectableItems)
            {
                try
                {
                    item.DeviceConnection.CloseConnection();
                }
                catch (Exception ex)
                {
                    _logService.LogMessage(ex.Message);
                }
            }

            ConnectableItems.Clear();
        }
示例#2
0
 public void Dispose()
 {
     ConnectableItems?.Clear();
     RefreshName();
 }