-
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.
WatchList.WPF - Implemented the ability to add an item.
- Loading branch information
1 parent
3d7ad13
commit 85ed645
Showing
7 changed files
with
78 additions
and
137 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using WatchList.Core.Model.ItemCinema; | ||
using WatchList.Core.Model.ItemCinema.Components; | ||
|
||
namespace WatchList.WPF.Models | ||
{ | ||
public class WatchItemCreator | ||
{ | ||
public WatchItemCreator() | ||
{ | ||
} | ||
|
||
public WatchItem CreateNonPlanned( | ||
string title, | ||
int sequel, | ||
StatusCinema status, | ||
TypeCinema type, | ||
DateTime? date = null, | ||
int? grade = null, | ||
Guid? id = null) | ||
=> new WatchItem(title, sequel, status, type, id, date, grade); | ||
|
||
public WatchItem CreatePlanned( | ||
string title, | ||
int sequel, | ||
StatusCinema status, | ||
TypeCinema type, | ||
Guid? id) | ||
=> new WatchItem(title, sequel, status, type, id, null, null); | ||
} | ||
} |
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