-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.xaml.cs
More file actions
81 lines (74 loc) · 2.22 KB
/
App.xaml.cs
File metadata and controls
81 lines (74 loc) · 2.22 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using Windows.Storage;
using System.Windows;
namespace Now_Playing
{
public static class Settings
{
public static bool AutoShowLyricsEnabled
{
get { return Properties.Settings.Default.AutoShowLyricsEnabled; }
set
{
Properties.Settings.Default.AutoShowLyricsEnabled = value;
Properties.Settings.Default.Save();;
}
}
public static bool PauseWhenAppClosedEnabled
{
get { return Properties.Settings.Default.PauseWhenAppClosedEnabled; }
set
{
Properties.Settings.Default.PauseWhenAppClosedEnabled = value;
Properties.Settings.Default.Save();
}
}
public static bool LyricsViewViewable
{
get { return Properties.Settings.Default.LyricsViewViewable; }
set
{
Properties.Settings.Default.LyricsViewViewable = value;
Properties.Settings.Default.Save();
}
}
public static int BitmapCacheMode
{
get { return Properties.Settings.Default.BitmapCacheMode; }
set
{
Properties.Settings.Default.BitmapCacheMode = value;
Properties.Settings.Default.Save();
}
}
public static string ImageResolutionThreshold
{
get { return Properties.Settings.Default.ImageResolutionThreshold; }
set
{
Properties.Settings.Default.ImageResolutionThreshold = value;
Properties.Settings.Default.Save();
}
}
public static int StartupMode
{
get { return Properties.Settings.Default.StartupMode; }
set
{
Properties.Settings.Default.StartupMode = value;
Properties.Settings.Default.Save();
}
}
}
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}