1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using Acosta.Views;
- using Avalonia.Controls;
- using ReactiveUI;
- namespace Acosta.ViewModels
- {
- public class MainWindowViewModel : ViewModelBase
- {
- public UserControl UC { get => uc; set => this.RaiseAndSetIfChanged(ref uc, value); }
- private UserControl uc = new AuthorizationView();
- public void LoadPersonalAccount()
- {
- UC = new OutletsView();//PersonalAccountView();
- }
- public void ExitFromProfile()
- {
- UC = new AuthorizationView();
- }
- public void AddTradeNetworksView()
- {
- UC = new AddTradeNetworksView();
- }
- public void BackTradeNetworksView()
- {
- UC = new TradeNetworksView();
- }
- public void AddOutletsView()
- {
- UC = new AddOutletsView();
- }
- public void BackOutletsView()
- {
- UC = new OutletsView();
- }
- public void EditOutletsView()
- {
- UC = new EditOutletsView();
- }
- }
- }
|