Esempio n. 1
0
 public Favorite()
 {
     this.InitializeComponent();
     this.RequestedTheme = Services.UserDatabase.LoadSetting();
     UserDB      = new Services.UserDatabase();
     F_ViewModel = new ViewModels.MessageViewModel(UserDB.GetFavorite());
 }
Esempio n. 2
0
        public MainPage()
        {
            this.InitializeComponent();
            M_ViewModel    = new ViewModels.MessageViewModel();
            Nav_viewModel  = new ViewModels.NavMenuViewModel();
            Func_viewModel = new ViewModels.NavMenuViewModel("func");
            UserDB         = new Services.UserDatabase();

            ContentView.Navigate(typeof(Home));
        }