MenuElement.cs 697 B

123456789101112131415161718192021
  1. using Microsoft.Extensions.Options;
  2. using ReactiveUI;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace AvaloniaApplication4.AdditionalModels
  9. {
  10. /// <summary>
  11. /// класс для создания объектов в панели меню
  12. /// </summary>
  13. public class MenuElement: ReactiveObject
  14. {
  15. private int idElement;
  16. private string? nameElement;
  17. public int IdElement { get => idElement; set => this.RaiseAndSetIfChanged(ref idElement, value); }
  18. public string? NameElement { get => nameElement; set => this.RaiseAndSetIfChanged(ref nameElement, value); }
  19. }
  20. }