Пример #1
0
 public OshimenPage()
 {
     name2     = new ObservableCollection <string>();
     name      = new ObservableCollection <string>();
     menu      = (Application.Current as App).menu;
     ViewModel = (Application.Current as App).ViewModel;
     Initialization();
     this.InitializeComponent();
 }
Пример #2
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;
 }
Пример #3
0
 public MemberPage()
 {
     ViewModel = (Application.Current as App).ViewModel;
     this.InitializeComponent();
 }
Пример #4
0
 public BlogPage()
 {
     menu      = (Application.Current as App).menu;
     ViewModel = (Application.Current as App).ViewModel;
     this.InitializeComponent();
 }