-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.xaml.cs
More file actions
30 lines (28 loc) · 765 Bytes
/
App.xaml.cs
File metadata and controls
30 lines (28 loc) · 765 Bytes
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
using System.Windows;
namespace YouTubeTracker
{
/// <summary>
/// Logic interaction for class App.xaml
/// </summary>
public partial class App : Application
{
/// <summary>
/// Database context used for accesing database.
/// </summary>
private static DataBase.YTrackerDBContext DBContext { get; set; }
/// <summary>
/// Returns database context <c>DBContext</c>.
/// </summary>
public static DataBase.YTrackerDBContext Context
{
get
{
if (DBContext == null)
{
DBContext = new DataBase.YTrackerDBContext();
}
return DBContext;
}
}
}
}