notifyIcon refresh

This commit is contained in:
rmbgame
2021-02-28 05:37:45 +08:00
parent 1315199426
commit bfa409da28
4 changed files with 62 additions and 7 deletions
@@ -8,7 +8,7 @@ namespace System.Application.Mvvm
/// <summary>
/// 提供用于一次处理多个IDisposable对象的功能
/// </summary>
public class CompositeDisposable : IDisposable, ICollection<IDisposable>
public class CompositeDisposable : IDisposable, ICollection<IDisposable>, IEnumerable<IDisposable>, IEnumerable
{
readonly object _lockObject = new object();
readonly List<IDisposable> _targetLists;
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace System.Application.Mvvm
{
public interface IDisposableHolder : IDisposable
{
ICollection<IDisposable> CompositeDisposable { get; }
}
}