﻿<UserControl x:Class="EcoRideDB.AddRental"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Height="350" Width="500">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <TextBlock Text="Add New Rental" FontSize="24" HorizontalAlignment="Center" Margin="10" Grid.Row="0" Foreground="White"/>

        <StackPanel Grid.Row="1" Margin="50">
            <TextBlock Text="Select Rider" FontWeight="Bold" Foreground="White"/>
            <ComboBox Name="cmbRider" Background="White" Foreground="Black" Margin="0,5,0,15"/>

            <TextBlock Text="Select Bike" FontWeight="Bold" Foreground="White"/>
            <ComboBox Name="cmbBike" Background="White" Foreground="Black" Margin="0,5,0,15"/>

            <TextBlock Text="Rental Date" FontWeight="Bold" Foreground="White"/>
            <TextBox Name="txtRentalDate" Background="White" Foreground="Black" Margin="0,5,0,15"/>

            <TextBlock Text="Return Date (optional)" FontWeight="Bold" Foreground="White"/>
            <TextBox Name="txtReturnDate" Background="White" Foreground="Black" Margin="0,5,0,15"/>

            <TextBlock Text="Cost (optional)" FontWeight="Bold" Foreground="White"/>
            <TextBox Name="txtCost" Background="White" Foreground="Black" Margin="0,5,0,15"/>
        </StackPanel>

        <Button Content="Add Rental" Click="AddRental_Click" Grid.Row="2" Width="120" HorizontalAlignment="Center" Margin="0,10" Background="#747578"/>
    </Grid>
</UserControl>