using System; using System.Collections.Generic; using System.Linq; using Avalonia.Media.TextFormatting; using reactivepril.Models; using ReactiveUI; namespace reactivepril.ViewModels { public class PersonsViewModel : ReactiveObject { public Galochkin41pContext db = new Galochkin41pContext(); List users; List users0; string textFind; List genders; Gender filteredGender; public List Users { get => users; set => users = value; } public List Users0 { get => users0; set => users0 = value; } public string TextFind { get => textFind; set => textFind = value; } public List Genders { get => genders; set => genders = value; } public Gender FilteredGender { get => filteredGender; set => filteredGender = value; } public PersonsViewModel() { Users = db.Users.ToList(); Genders = [ new Gender() { NameGender = "Ñáðîñèòü ôèëüòð", IdGender = 0 }, .. db.Genders.ToList() ]; Users0 = Users; } } }