/
Config.Notifications.cs
42 lines (38 loc) · 1.18 KB
/
Config.Notifications.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace uTorrentNotifier
{
public partial class Config
{
public class NotificationsConfig
{
private bool _DownloadComplete = true;
private bool _TorrentAdded = true;
public NotificationsConfig()
{
this._TorrentAdded = Properties.Settings.Default.Notification_TorrentAdded;
this._DownloadComplete = Properties.Settings.Default.Notification_DownloadComplete;
}
public bool DownloadComplete
{
get { return this._DownloadComplete; }
set
{
Properties.Settings.Default.Notification_DownloadComplete = value;
this._DownloadComplete= value;
}
}
public bool TorrentAdded
{
get { return this._TorrentAdded; }
set
{
Properties.Settings.Default.Notification_TorrentAdded = value;
this._TorrentAdded = value;
}
}
}
}
}