MainWindowViewModel.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Acosta.Views;
  2. using Avalonia.Controls;
  3. using ReactiveUI;
  4. namespace Acosta.ViewModels
  5. {
  6. public class MainWindowViewModel : ViewModelBase
  7. {
  8. public UserControl UC { get => uc; set => this.RaiseAndSetIfChanged(ref uc, value); }
  9. private UserControl uc = new AuthorizationView();
  10. public void LoadPersonalAccount()
  11. {
  12. UC = new OutletsView();//PersonalAccountView();
  13. }
  14. public void ExitFromProfile()
  15. {
  16. UC = new AuthorizationView();
  17. }
  18. public void AddTradeNetworksView()
  19. {
  20. UC = new AddTradeNetworksView();
  21. }
  22. public void BackTradeNetworksView()
  23. {
  24. UC = new TradeNetworksView();
  25. }
  26. public void AddOutletsView()
  27. {
  28. UC = new AddOutletsView();
  29. }
  30. public void BackOutletsView()
  31. {
  32. UC = new OutletsView();
  33. }
  34. public void EditOutletsView()
  35. {
  36. UC = new EditOutletsView();
  37. }
  38. }
  39. }