<Window x:Class="Temperature_chamber02.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Temperature_chamber02"
        mc:Ignorable="d"
        
        Title="Temperature Chamber Interface" Height="288.235" Width="525" >
    <Grid>
        <Button x:Name="btn_setup" Content="Setup" HorizontalAlignment="Left" Margin="420,10,0,0" VerticalAlignment="Top" Width="75" Click="btn_setup_Click"/>
        <Button x:Name="Send_button" Content="Send" HorizontalAlignment="Left" Margin="155,9,0,0" VerticalAlignment="Top" Width="60" Height="25" Click="Send_button_Click"/>
        <Slider x:Name="Teplota_slider" TickFrequency="0.1" IsSnapToTickEnabled="True" HorizontalAlignment="Left" Margin="10,40,0,0" VerticalAlignment="Top" Width="200" Height="25" RenderTransformOrigin="0.502,0.723" Minimum="-50" Maximum="150" Value="20"/>
        <TextBox x:Name="Teplota_set" HorizontalAlignment="Left" Height="25" Margin="215,40,0,0" TextWrapping="Wrap" Text="{Binding Value, ElementName=Teplota_slider, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" Width="50" TextAlignment="Center"/>
        <ComboBox x:Name="comboBox" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="140" SelectedIndex="0" Height="25" >
            <ComboBoxItem Content="Získání dat"/>
            <ComboBoxItem Content="Nastavení teploty"/>
            <ComboBoxItem Content="Přidání teploty do cyklu"/>
            <ComboBoxItem Content="Spustit měření"/>
            <ComboBoxItem Content="Spustit měřící cyklus"/>
            <ComboBoxItem Content="Zastav měření"/>
            <ComboBoxItem Content="Reset"/>
        </ComboBox>
        <TextBlock  x:Name="Teplota_read_set" HorizontalAlignment="Left" Height="25" Margin="215,93,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="50" RenderTransformOrigin="0.471,3.534" TextAlignment="Center"/>
        <TextBlock  x:Name="Teplota_read_measure" HorizontalAlignment="Left" Height="25" Margin="215,118,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="50" RenderTransformOrigin="0.471,3.534" TextAlignment="Center"/>
        <TextBlock  x:Name="Stav" HorizontalAlignment="Left" Height="25" Margin="215,148,0,0" TextWrapping="Wrap" Text="-" VerticalAlignment="Top" Width="161" RenderTransformOrigin="0.471,3.534"/>
        <TextBlock  x:Name="posledni_cyklus" HorizontalAlignment="Left" Height="25" Margin="215,173,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="50" RenderTransformOrigin="0.471,3.534" TextAlignment="Center"/>
        <TextBlock  x:Name="Teplota_read_set_copy" HorizontalAlignment="Left" Height="25" Margin="65,93,0,0" TextWrapping="Wrap" Text="Aktuální nastavená teplota" VerticalAlignment="Top" Width="145" RenderTransformOrigin="0.471,3.534"/>
        <TextBlock  x:Name="Teplota_read_measure_Copy" HorizontalAlignment="Left" Height="25" Margin="65,118,0,0" TextWrapping="Wrap" Text="Aktuální teplota komory" VerticalAlignment="Top" Width="140" RenderTransformOrigin="0.471,3.534"/>
        <TextBlock  x:Name="Stav_Copy" HorizontalAlignment="Left" Height="25" Margin="65,148,0,0" TextWrapping="Wrap" Text="Stav" VerticalAlignment="Top" Width="120" RenderTransformOrigin="0.471,3.534"/>
        <TextBlock  x:Name="textBox_Copy" HorizontalAlignment="Left" Height="25" Margin="65,173,0,0" TextWrapping="Wrap" Text="Počet cyklů" VerticalAlignment="Top" Width="120" RenderTransformOrigin="0.471,3.534"/>
        <Slider x:Name="slider_cas" TickFrequency="1" IsSnapToTickEnabled="True" HorizontalAlignment="Left" Margin="10,65,0,0" VerticalAlignment="Top" Width="200" Height="25" RenderTransformOrigin="0.502,0.723" Maximum="1440" Value="1" LargeChange="0" SmallChange="0"/>
        <TextBox x:Name="Cas" HorizontalAlignment="Left" Height="25" Margin="215,65,0,0" TextWrapping="Wrap" Text="{Binding Value, ElementName=slider_cas, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" Width="50" TextAlignment="Center"/>
        <TextBlock  x:Name="Minuty" HorizontalAlignment="Left" Height="25" Margin="270,68,0,0" TextWrapping="Wrap" Text="Minut" VerticalAlignment="Top" Width="48" RenderTransformOrigin="0.471,3.534"/>
        <TextBlock  x:Name="stupne" HorizontalAlignment="Left" Height="25" Margin="270,43,0,0" TextWrapping="Wrap" Text="°C" VerticalAlignment="Top" Width="48" RenderTransformOrigin="0.471,3.534"/>
        <CheckBox x:Name="checkBox" Content="Automatické získávání dat" HorizontalAlignment="Left" Margin="234,13,0,0" VerticalAlignment="Top" Width="154" Checked="checkBox_Checked" Unchecked="checkBox_unchecked" />
        <TextBlock  x:Name="spusteny_cyklus" HorizontalAlignment="Left" Height="25" Margin="215,198,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="50" RenderTransformOrigin="0.471,3.534" TextAlignment="Center"/>
        <TextBlock  x:Name="spusteny_cyklus_text" HorizontalAlignment="Left" Height="25" Margin="65,198,0,0" TextWrapping="Wrap" Text="Spuštěný cyklus" VerticalAlignment="Top" Width="120" RenderTransformOrigin="0.471,3.534"/>
        <TextBlock  x:Name="Stav_mereni" HorizontalAlignment="Left" Height="25" Margin="215,223,0,0" TextWrapping="Wrap" Text="-" VerticalAlignment="Top" Width="161" RenderTransformOrigin="0.471,3.534"/>
        <TextBlock  x:Name="Stav_mereni_text" HorizontalAlignment="Left" Height="25" Margin="65,223,0,0" TextWrapping="Wrap" Text="Stav Interface" VerticalAlignment="Top" Width="120" RenderTransformOrigin="0.471,3.534"/>


        <TextBlock x:Name="textBlock_com_conection" HorizontalAlignment="Left" Margin="368,95,0,0" TextWrapping="Wrap" Text="COM Connection:" VerticalAlignment="Top" Visibility="Hidden"/>
        <Button x:Name="btn_open" Content="Open" HorizontalAlignment="Left" Margin="387,116,0,0" VerticalAlignment="Top" Width="75" Click="btn_open_Click" Visibility="Hidden"/>
        <Button x:Name="btn_close" Content="Close" HorizontalAlignment="Left" Margin="387,143,0,0" VerticalAlignment="Top" Width="75" Click="btn_close_Click" Visibility="Hidden"/>
        <RichTextBox x:Name="block_test" HorizontalAlignment="Left" Height="68" Margin="318,180,0,0" VerticalAlignment="Top" Width="189" Visibility="Hidden"/>
        <Button x:Name="btn_graf" Content="Graf" HorizontalAlignment="Left" Margin="420,65,0,0" VerticalAlignment="Top" Width="75" Click="btn_graf_Click"/>
        

    </Grid>
</Window>
