XuaViewModel.cs 937 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using XUnity.AutoTranslator.Plugin.Core.Endpoints;
  6. namespace XUnity.AutoTranslator.Plugin.Core.UI
  7. {
  8. class XuaViewModel
  9. {
  10. public XuaViewModel(
  11. List<ToggleViewModel> toggles,
  12. DropdownViewModel<TranslatorDropdownOptionViewModel, TranslationEndpointManager> dropdown,
  13. List<ButtonViewModel> commandButtons,
  14. List<LabelViewModel> labels )
  15. {
  16. Toggles = toggles;
  17. Dropdown = dropdown;
  18. CommandButtons = commandButtons;
  19. Labels = labels;
  20. }
  21. public bool IsShown { get; set; }
  22. public List<ToggleViewModel> Toggles { get; }
  23. public DropdownViewModel<TranslatorDropdownOptionViewModel, TranslationEndpointManager> Dropdown { get; }
  24. public List<ButtonViewModel> CommandButtons { get; }
  25. public List<LabelViewModel> Labels { get; }
  26. }
  27. }