<Page x:Class="WPF_Sample.Views.Examples.UserInfo"
      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:WPF_Sample"
      mc:Ignorable="d" Title="Example" d:DesignHeight="485" d:DesignWidth="1024">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="10" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="10" />
            <RowDefinition Height="*" />
            <RowDefinition Height="10" />
        </Grid.RowDefinitions>

        <Rectangle Grid.Column="1" Grid.Row="1" Height="1" HorizontalAlignment="Stretch" Margin="6,32,11,0" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" />
        <Label Content="User Information Services" FontSize="22" Grid.Column="1" Height="44" HorizontalAlignment="Left" Name="label2" VerticalAlignment="Top" Width="318" FontWeight="Normal" Margin="0,7,0,0" Grid.RowSpan="2" />
        <GroupBox Header="Filter Parameters" Height="119" HorizontalAlignment="Stretch" Margin="9,47,17,0" Name="groupBox1" VerticalAlignment="Top" Grid.Column="1" Grid.Row="1">
            <Grid Margin="0,0,0,1">
                <Label Content="Get By:" Height="28" HorizontalAlignment="Left" Margin="7,16,0,0" Name="lblGetBy" VerticalAlignment="Top" />
                <RadioButton Content="Employee ID" Height="16" HorizontalAlignment="Left" Margin="66,21,0,0" Name="radioEmployeeID" VerticalAlignment="Top" />
                <RadioButton Content="Last Name" Height="16" HorizontalAlignment="Left" Margin="170,21,0,0" Name="radioLName" VerticalAlignment="Top" Width="116" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="10,48,0,0" x:Name="txtSearchData" VerticalAlignment="Top" Width="263" RenderTransformOrigin="0.5,0.5" >
                    <TextBox.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform Angle="0.002"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </TextBox.RenderTransform>
                </TextBox>
                <Button Content="Search" Height="23" HorizontalAlignment="Left" Margin="288,47,0,0" Name="btnSearch" VerticalAlignment="Top" Width="59" Click="btnSearch_Click" />
            </Grid>
        </GroupBox>
        <DataGrid AutoGenerateColumns="False" HorizontalAlignment="Stretch" Margin="9,224,18,0" Name="dataGrid1" VerticalAlignment="Top" ItemsSource="{Binding STWS.UserInfo}" VerticalContentAlignment="Stretch" Grid.Column="1" Grid.Row="1" SelectionMode="Single">
            <DataGrid.Columns>
                <DataGridTextColumn Header="User ID" Binding="{Binding UserID}" />
                <DataGridTextColumn Header="Employee ID" Binding="{Binding EmpIdentifier}" />
                <DataGridTextColumn Header="First Name" Binding="{Binding FirstName}" />
                <DataGridTextColumn Header="Middle" Binding="{Binding MiddleName}" />
                <DataGridTextColumn Header="Last Name" Binding="{Binding LastName}" />
                <DataGridTextColumn Header="Title" Binding="{Binding Title}" />
                <DataGridTextColumn Header="Address1" Binding="{Binding Address1}" />
                <DataGridTextColumn Header="Address2" Binding="{Binding Address2}" />
                <DataGridTextColumn Header="City" Binding="{Binding City}" />
                <DataGridTextColumn Header="State" Binding="{Binding State}" />
                <DataGridTextColumn Header="PostalCode" Binding="{Binding PostalCode}" />
                <DataGridTextColumn Header="Phone1" Binding="{Binding Phone1}" />
                <DataGridTextColumn Header="Phone2" Binding="{Binding Phone2}" />
                <DataGridTextColumn Header="Phone3" Binding="{Binding Phone3}" />
                <DataGridTextColumn Header="Email" Binding="{Binding Email}" />
                <DataGridTextColumn Header="Badge" Binding="{Binding Badge}" />
                <DataGridTextColumn Header="WebLogin" Binding="{Binding WebLogin}" />
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="Get All" Height="23" HorizontalAlignment="Right" Margin="0,195,175,0" Name="btnGetEmployees" VerticalAlignment="Top" Width="60" Click="btnGetEmployees_Click" Grid.Column="1" Grid.Row="1" />
        <Button Content="Add User" Height="23" HorizontalAlignment="Right" Margin="0,195,106,0" Name="btnAdd" VerticalAlignment="Top" Width="63" Click="btnAdd_Click" Grid.Column="1" Grid.Row="1" />
        <Label Height="28" HorizontalAlignment="Left" Margin="8,196,0,0" Name="lblProcessing" VerticalAlignment="Top" Grid.Column="1" Grid.Row="1" />
        <Border BorderBrush="#FFA3A3A3" BorderThickness="1" Height="161" HorizontalAlignment="Stretch" Margin="8,250,17,0" Name="borderNoRecords" VerticalAlignment="Top" Background="White" Grid.Column="1" Grid.Row="1">
            <Label Content="No Records Found" Height="28" Name="label3" HorizontalContentAlignment="Center" />
        </Border>
        <Button Content="Delete User" Grid.Column="1" Grid.Row="1" Height="23" HorizontalAlignment="Right" Margin="0,195,19,0" Name="btnDelete" VerticalAlignment="Top" Width="82" Click="btnDelete_Click" />
    </Grid>
</Page>
