-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from marcus-talbot42/fixes/functionality-and-s…
…hizzles Fixes/functionality and shizzles
- Loading branch information
Showing
106 changed files
with
20,881 additions
and
1,718 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace ProjectB.Choices | ||
{ | ||
public class DateChoice | ||
{ | ||
public DateTime Date { get; set; } | ||
|
||
public DateChoice(DateTime date) | ||
{ | ||
Date = date; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return Date.ToShortDateString(); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace ProjectB.Choices | ||
{ | ||
public class NamedChoice<T> | ||
{ | ||
public string Name { get; set; } | ||
public T Value { get; set; } | ||
|
||
public NamedChoice(string name, T value) | ||
{ | ||
Name = name; | ||
Value = value; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return Name; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace ProjectB.Choices | ||
{ | ||
public class TimeChoice | ||
{ | ||
public TimeSpan Span { get; set; } | ||
|
||
public TimeChoice(TimeSpan span) | ||
{ | ||
Span = span; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return Span.ToString("hh\\:mm"); | ||
} | ||
} | ||
} |
Oops, something went wrong.