diff --git a/TrackerWPFUI/TrackerWPFUI.csproj b/TrackerWPFUI/TrackerWPFUI.csproj
index 0cb5137..d88b24d 100644
--- a/TrackerWPFUI/TrackerWPFUI.csproj
+++ b/TrackerWPFUI/TrackerWPFUI.csproj
@@ -71,7 +71,15 @@
Designer
+
+
+
+ CreatePrizeView.xaml
+
+
+ CreateTeamView.xaml
+
ShellView.xaml
@@ -79,6 +87,14 @@
App.xaml
Code
+
+ Designer
+ MSBuild:Compile
+
+
+ Designer
+ MSBuild:Compile
+
Designer
MSBuild:Compile
diff --git a/TrackerWPFUI/ViewModels/CreatePrizeViewModel.cs b/TrackerWPFUI/ViewModels/CreatePrizeViewModel.cs
new file mode 100644
index 0000000..c16fd10
--- /dev/null
+++ b/TrackerWPFUI/ViewModels/CreatePrizeViewModel.cs
@@ -0,0 +1,104 @@
+using Caliburn.Micro;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TrackerLibrary;
+using TrackerLibrary.Models;
+
+namespace TrackerWPFUI.ViewModels
+{
+ public class CreatePrizeViewModel : Screen
+ {
+ private int _placeNumber;
+ private string _placeName;
+ private decimal _prizeAmount;
+ private double _prizePercentage;
+
+
+ public int PlaceNumber
+ {
+ get { return _placeNumber; }
+ set {
+ _placeNumber = value;
+ NotifyOfPropertyChange(() => PlaceNumber);
+ }
+ }
+
+
+ public string PlaceName
+ {
+ get { return _placeName; }
+ set { _placeName = value;
+ NotifyOfPropertyChange(() => PlaceName);
+ }
+ }
+
+
+ public decimal PrizeAmount
+ {
+ get { return _prizeAmount; }
+ set { _prizeAmount = value;
+ NotifyOfPropertyChange(() => PrizeAmount);
+ }
+ }
+
+
+ public double PrizePercentage
+ {
+ get { return _prizePercentage; }
+ set { _prizePercentage = value;
+ NotifyOfPropertyChange(() => PrizePercentage);
+ }
+ }
+
+ public bool CanCreatePrize(int placeNumber, string placeName, decimal prizeAmount, double prizePercentage)
+ {
+ return ValidateForm(placeNumber, placeName, prizeAmount, prizePercentage);
+ }
+
+ public void CreatePrize(int placeNumber, string placeName, decimal prizeAmount, double prizePercentage)
+ {
+ PrizeModel model = new PrizeModel
+ {
+ PlaceNumber = placeNumber,
+ PlaceName = placeName,
+ PrizeAmount = prizeAmount,
+ PrizePercentage = prizePercentage
+ };
+ GlobalConfig.Connection.CreatePrize(model);
+
+ //TODO Close out the form and alert the calling form
+
+ }
+
+ private bool ValidateForm(int placeNumber, string placeName, decimal prizeAmount, double prizePercentage)
+ {
+ bool output = true;
+
+
+ if (placeNumber < 1)
+ {
+ output = false;
+ }
+
+ if (placeName.Length == 0)
+ {
+ output = false;
+ }
+
+ if (prizeAmount <= 0 && prizePercentage <= 0)
+ {
+ output = false;
+ }
+
+ if (prizePercentage < 0 || prizePercentage > 100)
+ {
+ output = false;
+ }
+
+ return output;
+ }
+ }
+}
diff --git a/TrackerWPFUI/ViewModels/CreateTeamViewModel.cs b/TrackerWPFUI/ViewModels/CreateTeamViewModel.cs
new file mode 100644
index 0000000..7bf1ded
--- /dev/null
+++ b/TrackerWPFUI/ViewModels/CreateTeamViewModel.cs
@@ -0,0 +1,145 @@
+using Caliburn.Micro;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TrackerLibrary;
+using TrackerLibrary.Models;
+
+namespace TrackerWPFUI.ViewModels
+{
+ public class CreateTeamViewModel : Conductor