-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- terminal, notification, display - user can select screen
- Loading branch information
Stanislav
committed
Feb 7, 2016
1 parent
8a314fa
commit 425dc28
Showing
25 changed files
with
512 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
147 changes: 77 additions & 70 deletions
147
...fication/Settings/NotificationSettings.cs → sources/Notification/Settings/AppSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,78 @@ | ||
using Queue.Common; | ||
using System.Configuration; | ||
|
||
namespace Queue.Notification.Settings | ||
{ | ||
public class NotificationSettings : ConfigurationSection | ||
{ | ||
public const string SectionKey = "notification"; | ||
|
||
public NotificationSettings() | ||
{ | ||
Theme = "default"; | ||
Endpoint = "net.tcp://queue:4505"; | ||
IsFullScreen = true; | ||
} | ||
|
||
[ConfigurationProperty("endpoint")] | ||
public string Endpoint | ||
{ | ||
get { return (string)this["endpoint"]; } | ||
set { this["endpoint"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("theme")] | ||
public string Theme | ||
{ | ||
get { return (string)this["theme"]; } | ||
set { this["theme"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("isRemember")] | ||
public bool IsRemember | ||
{ | ||
get { return (bool)this["isRemember"]; } | ||
set { this["isRemember"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("isFullScreen", DefaultValue = true)] | ||
public bool IsFullScreen | ||
{ | ||
get { return (bool)this["isFullScreen"]; } | ||
set { this["isFullScreen"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("language")] | ||
public Language Language | ||
{ | ||
get { return (Language)this["language"]; } | ||
set { this["language"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("accent")] | ||
public string Accent | ||
{ | ||
get { return (string)this["accent"]; } | ||
set { this["accent"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("displays")] | ||
[ConfigurationCollection(typeof(DisplayCollection))] | ||
public DisplayCollection Displays | ||
{ | ||
get { return (DisplayCollection)base["displays"]; } | ||
} | ||
|
||
public override bool IsReadOnly() | ||
{ | ||
return false; | ||
} | ||
} | ||
using Queue.Common; | ||
using System.Configuration; | ||
|
||
namespace Queue.Notification.Settings | ||
{ | ||
public class AppSettings : ConfigurationSection | ||
{ | ||
public const string SectionKey = "notification"; | ||
|
||
public AppSettings() | ||
{ | ||
Theme = "default"; | ||
Endpoint = "net.tcp://queue:4505"; | ||
IsFullScreen = true; | ||
} | ||
|
||
[ConfigurationProperty("endpoint")] | ||
public string Endpoint | ||
{ | ||
get { return (string)this["endpoint"]; } | ||
set { this["endpoint"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("theme")] | ||
public string Theme | ||
{ | ||
get { return (string)this["theme"]; } | ||
set { this["theme"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("isRemember")] | ||
public bool IsRemember | ||
{ | ||
get { return (bool)this["isRemember"]; } | ||
set { this["isRemember"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("isFullScreen", DefaultValue = true)] | ||
public bool IsFullScreen | ||
{ | ||
get { return (bool)this["isFullScreen"]; } | ||
set { this["isFullScreen"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("screenNumber")] | ||
public byte ScreenNumber | ||
{ | ||
get { return (byte)this["screenNumber"]; } | ||
set { this["screenNumber"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("language")] | ||
public Language Language | ||
{ | ||
get { return (Language)this["language"]; } | ||
set { this["language"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("accent")] | ||
public string Accent | ||
{ | ||
get { return (string)this["accent"]; } | ||
set { this["accent"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("displays")] | ||
[ConfigurationCollection(typeof(DisplayCollection))] | ||
public DisplayCollection Displays | ||
{ | ||
get { return (DisplayCollection)base["displays"]; } | ||
} | ||
|
||
public override bool IsReadOnly() | ||
{ | ||
return false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.