﻿<UserControl x:Class="DriveDotNetGuiClient.SettingsObjects.UploadTxtParams"
             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:localCmd="clr-namespace:DriveDotNetGuiClient.Commands"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <localCmd:SaveFileBrowserCommand x:Key="SaveFileBrowserCommand" />
    </UserControl.Resources>
    <Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="60"/>
                <ColumnDefinition/>
                <ColumnDefinition Width="25"/>
            </Grid.ColumnDefinitions>
            <CheckBox Grid.Row="0" Grid.ColumnSpan="3" Content="Create XML file format Used for FoE process" Margin="5" IsChecked="{Binding Settings.CreateFoEXml}"/>
            <CheckBox Grid.Row="1" Grid.ColumnSpan="3" Content="Stop in case Get of one of the parameters fails" Margin="5" IsChecked="{Binding Settings.StopOnError}"/>
            <CheckBox Grid.Row="2" Grid.ColumnSpan="3" Content="Load parameters from flash to RAM before uploading" Margin="5" IsChecked="{Binding Settings.LoadToRAM}"/>
            <TextBlock  Grid.Row="3" Grid.ColumnSpan="3" Text="Adding filters can be add manually in the code"/>
            <TextBlock Text="Path: " Grid.Row="4" Grid.Column="0" Height="25" Margin="5"/>
            <TextBox Grid.Row="4" Grid.Column="1" Text="{Binding Path}" Height="25" Margin="5"/>
            <Button Grid.Row="4" Grid.Column="3" Content="..." Height="25" Width="25" Command="{StaticResource SaveFileBrowserCommand}" CommandParameter="{Binding}"/>
        </Grid>
    </Grid>
</UserControl>
