Example #1
0
 /// <summary>
 /// 初始化单一实例应用程序对象。这是执行的创作代码的第一行,
 /// 已执行,逻辑上等同于 main() 或 WinMain()。
 /// </summary>
 public App()
 {
     conn = new SQLiteConnection(new SQLitePlatformWinRT(), path);
     //datebase建表
     conn.CreateTable <Models.Member>();
     menu      = new Models.Menu();
     ViewModel = new MemberViewModel();
     SongList  = new SongViewModels();
     this.InitializeComponent();
     this.Suspending += OnSuspending;
 }
Example #2
0
 public SongPage()
 {
     Windows.UI.Core.SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested;
     SongList = (Application.Current as App).SongList;
     this.InitializeComponent();
 }