123456789101112131415161718192021222324252627282930313233343536373839 |
- 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<User> users;
- List<User> users0;
- string textFind;
- List<Gender> genders;
- Gender filteredGender;
- public List<User> Users { get => users; set => users = value; }
- public List<User> Users0 { get => users0; set => users0 = value; }
- public string TextFind { get => textFind; set => textFind = value; }
- public List<Gender> 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;
- }
- }
- }
|