mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-21 17:13:09 +08:00
notifyIcon refresh
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user