12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using Avalonia.Controls;
- using ReactiveUI;
- using System.Net;
- using TourAgent.Models;
- using TourAgent.Views;
- namespace TourAgent.ViewModels
- {
- public class MainWindowViewModel : ViewModelBase
- {
- public static UP_SmirnovContext DB = new UP_SmirnovContext();
- UserControl us = new Views.Menu();
- public UserControl US
- {
- get => us;
- set => this.RaiseAndSetIfChanged(ref us, value);
- }
- MenuViewModel menuVM = new MenuViewModel();
- public MenuViewModel MenuVM
- {
- get => menuVM;
- set => menuVM = value;
- }
- ToursViewModel _toursVM = new ToursViewModel();
- public ToursViewModel ToursVM
- {
- get => _toursVM;
- set => _toursVM = value;
- }
- public void ChangePageToHotels()
- {
- US = new Hotels();
- }
- public void ChangePageToTours()
- {
- US = new Tours();
- }
- }
- }
|