Skip to content

Commit

Permalink
Merge pull request #12 from marcus-talbot42/fixes/functionality-and-s…
Browse files Browse the repository at this point in the history
…hizzles

Fixes/functionality and shizzles
  • Loading branch information
Stefhanos authored Jun 2, 2024
2 parents 327a350 + 34bdc18 commit f1c7c00
Show file tree
Hide file tree
Showing 106 changed files with 20,881 additions and 1,718 deletions.
17 changes: 17 additions & 0 deletions ProjectB/Choices/DateChoice.cs
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();
}
}
}
19 changes: 19 additions & 0 deletions ProjectB/Choices/NamedChoice.cs
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;
}
}
}
17 changes: 17 additions & 0 deletions ProjectB/Choices/TimeChoice.cs
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");
}
}
}
Loading

0 comments on commit f1c7c00

Please sign in to comment.