Create Prize and create Team ready
This commit is contained in:
51
TrackerWPFUI/Views/CreatePrizeView.xaml
Normal file
51
TrackerWPFUI/Views/CreatePrizeView.xaml
Normal file
@ -0,0 +1,51 @@
|
||||
<UserControl x:Class="TrackerWPFUI.Views.CreatePrizeView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:TrackerWPFUI.Views"
|
||||
mc:Ignorable="d" Background="White"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<StackPanel Orientation="Vertical">
|
||||
<TextBlock FontSize="24" Margin="0 0 0 10" >Create Prize</TextBlock>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"></ColumnDefinition>
|
||||
<ColumnDefinition Width="*"></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!--row 0-->
|
||||
<TextBlock Margin="5 0 10 10" Grid.Column="0" Grid.Row="0">Place Number</TextBlock>
|
||||
<TextBox x:Name="PlaceNumber" Margin="0 0 5 10" Grid.Column="1" Grid.Row="0"></TextBox>
|
||||
<!--row 1-->
|
||||
<TextBlock Margin="5 0 10 10" Grid.Column="0" Grid.Row="1">Place Name</TextBlock>
|
||||
<TextBox x:Name="PlaceName" Margin="0 0 5 10" Grid.Column="1" Grid.Row="1"></TextBox>
|
||||
<!--row 2-->
|
||||
<TextBlock Margin="5 0 10 10" Grid.Column="0" Grid.Row="2">Prize Amount</TextBlock>
|
||||
<TextBox x:Name="PrizeAmount" Margin="0 0 5 10" Grid.Column="2" Grid.Row="2"></TextBox>
|
||||
<!--row 3-->
|
||||
<TextBlock Margin="5 0 5 10" Grid.Column="0" Grid.Row="3"
|
||||
HorizontalAlignment="Center" Grid.ColumnSpan="2">
|
||||
-- OR --
|
||||
</TextBlock>
|
||||
<!--row 4-->
|
||||
<TextBlock Margin="5 0 10 10" Grid.Column="0" Grid.Row="4">Prize Percentage</TextBlock>
|
||||
<TextBox x:Name="PrizePercentage" Margin="0 0 5 10" Grid.Column="2" Grid.Row="4"></TextBox>
|
||||
<!--row 4-->
|
||||
<Button x:Name="CreatePrize" Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="2" Padding="10" Margin="5 0 ">
|
||||
Create Prize
|
||||
</Button>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
28
TrackerWPFUI/Views/CreatePrizeView.xaml.cs
Normal file
28
TrackerWPFUI/Views/CreatePrizeView.xaml.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace TrackerWPFUI.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for CreatePrizeView.xaml
|
||||
/// </summary>
|
||||
public partial class CreatePrizeView : UserControl
|
||||
{
|
||||
public CreatePrizeView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
30
TrackerWPFUI/Views/CreateTeamView.xaml
Normal file
30
TrackerWPFUI/Views/CreateTeamView.xaml
Normal file
@ -0,0 +1,30 @@
|
||||
<UserControl x:Class="TrackerWPFUI.Views.CreateTeamView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:TrackerWPFUI.Views"
|
||||
mc:Ignorable="d" Background="White"
|
||||
d:DesignHeight="300" d:DesignWidth="300">
|
||||
<Grid>
|
||||
<StackPanel Orientation="Vertical" >
|
||||
<TextBlock FontSize="24">Create Team</TextBlock>
|
||||
<TextBlock Margin="5 0 5 5">Team Name</TextBlock>
|
||||
<TextBox x:Name="TeamName" Margin="5 0 5 10 "></TextBox>
|
||||
<TextBlock Margin="5 0 5 5">Select Team Member</TextBlock>
|
||||
<ComboBox x:Name="AvailableTeamMembers" Margin="5 0 5 10"
|
||||
SelectedItem="{Binding Path=SelectedTeamMemberToAdd, Mode=OneWayToSource}"
|
||||
DisplayMemberPath="FullName"/>
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<Button x:Name="AddMember" Padding="5" Margin="0 0 5 0">Add Member</Button>
|
||||
<Button x:Name="CreateMember" Padding="5" >Create Member</Button>
|
||||
<Button x:Name="RemoveMember" Padding="5" Margin="5 0 0 0">Remove Member</Button>
|
||||
</StackPanel>
|
||||
<TextBlock Margin="5 0 5 10" >Selected Team Members</TextBlock>
|
||||
<ListBox x:Name="SelectedTeamMembers" DisplayMemberPath="FullName"
|
||||
Margin="5 0 5 0" MinHeight="20"
|
||||
SelectedItem="{Binding Path=SelectedTeamMemberToRemove, Mode=TwoWay}" />
|
||||
<Button x:Name="CreateTeam" Margin="5 10 5 5" Padding="5" >Create Team</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
28
TrackerWPFUI/Views/CreateTeamView.xaml.cs
Normal file
28
TrackerWPFUI/Views/CreateTeamView.xaml.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace TrackerWPFUI.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for CreateTeamView.xaml
|
||||
/// </summary>
|
||||
public partial class CreateTeamView : UserControl
|
||||
{
|
||||
public CreateTeamView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -36,6 +36,6 @@
|
||||
<!--<TextBlock x:Name="SelectedTournament_TournamentName"/>-->
|
||||
</StackPanel>
|
||||
|
||||
<ContentControl Grid.Row="2" Grid.Column="2"/>
|
||||
<ContentControl x:Name="ActiveItem" Grid.Row="2" Grid.Column="2"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
Reference in New Issue
Block a user