-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml.cs
54 lines (38 loc) · 805 Bytes
/
App.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.IO;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using DegreePlanner.Classes;
using DegreePlanner.Pages;
using System.Threading.Tasks;
namespace DegreePlanner
{
public partial class App : Application
{
public static SQLiteHelper db;
public static SQLiteHelper MyDatabase {
get{
if(db==null){
db = new SQLiteHelper(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "MyStore.db3"));
}
return db;
}
}
public App()
{
InitializeComponent();
var mainPage = new MainPage();
var navPage = new NavigationPage(mainPage);
MainPage = navPage;
}
protected override void OnStart()
{
}
protected override void OnSleep()
{
}
protected override void OnResume()
{
}
}
}