public Favorite() { this.InitializeComponent(); this.RequestedTheme = Services.UserDatabase.LoadSetting(); UserDB = new Services.UserDatabase(); F_ViewModel = new ViewModels.MessageViewModel(UserDB.GetFavorite()); }
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)); }
public Home() { this.InitializeComponent(); var viewTitleBar = Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TitleBar; viewTitleBar.BackgroundColor = Windows.UI.Colors.BurlyWood; viewTitleBar.ButtonBackgroundColor = Windows.UI.Colors.BurlyWood; this.RequestedTheme = Services.UserDatabase.LoadSetting(); UserDB = new Services.UserDatabase(); ViewModel = new ViewModels.FeedReaderViewModel(UserDB.GetSubscription()); // 从网络获取订阅源数据 }
public Login() { this.InitializeComponent(); this.RequestedTheme = Services.UserDatabase.LoadSetting(); UserDB = new Services.UserDatabase(); }