mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-04-01 14:30:30 -04:00
Initial commit
This commit is contained in:
26
Feeds/Category.cs
Normal file
26
Feeds/Category.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
|
||||
namespace FeedCenter
|
||||
{
|
||||
public partial class Category
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
public Category()
|
||||
{
|
||||
ID = Guid.NewGuid();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public bool IsDefault
|
||||
{
|
||||
get { return Name == "< default >"; }
|
||||
}
|
||||
|
||||
public int SortKey
|
||||
{
|
||||
get { return IsDefault ? 0 : 1; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user