Files
GeekDesk/ViewModel/Temp/SearchIconList.cs
2023-03-31 09:06:04 +08:00

39 lines
973 B
C#

using System.Collections.ObjectModel;
using System.ComponentModel;
namespace GeekDesk.ViewModel.Temp
{
public class SearchIconList
{
private static ObservableCollection<IconInfo> iconList = new ObservableCollection<IconInfo>();
public static ObservableCollection<IconInfo> IconList
{
get
{
return iconList;
}
set
{
iconList = value;
OnPropertyChanged("IconList");
}
}
public static void RemoveAll()
{
while (IconList.Count > 0)
{
IconList.RemoveAt(IconList.Count - 1);
}
}
private static event PropertyChangedEventHandler PropertyChanged;
private static void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(null, new PropertyChangedEventArgs(propertyName));
}
}
}