兼容win7版应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
798 B

using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AIK.Models
{
public partial class AlphabetGroup : ObservableObject
{
[ObservableProperty]
private string letter;
[ObservableProperty]
private ObservableCollection<AlphabetItem> items;
public void AddRange(string[] names)
{
foreach (var name in names)
{
Items.Add(new AlphabetItem(name, Letter));
}
}
public AlphabetGroup(string letter)
{
this.letter = letter;
Items = new ObservableCollection<AlphabetItem>();
}
}
}