Created
December 27, 2015 16:45
-
-
Save thekitchenscientist/25f6cb43c468609db4a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Window x:Class="LegoLogger.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:LegoLogger" | |
mc:Ignorable="d" | |
Title="MainWindow" Height="450" Width="550"> | |
<Grid Loaded="Grid_Loaded"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="183*"/> | |
<ColumnDefinition Width="184*"/> | |
<ColumnDefinition Width="175*"/> | |
</Grid.ColumnDefinitions> | |
<Button x:Name="StartLoggingButton" Content="Start Logging" HorizontalAlignment="Center" Margin="14,124,11,259" VerticalAlignment="Center" Width="150" Click="StartLoggingButton_Click" Height="40" FontSize="24" Grid.Column="2"/> | |
<Button x:Name="StopLoggingButton" Content="Stop Logging" HorizontalAlignment="Center" Margin="14,169,11,214" VerticalAlignment="Center" Width="150" Click="StopLoggingButton_Click" Height="40" FontSize="24" Grid.Column="2"/> | |
<Button x:Name="WriteLogButton" Content="Write Log" HorizontalAlignment="Center" Margin="14,214,11,169" VerticalAlignment="Center" Width="150" Click="WriteLogButton_Click" Height="40" Grid.Column="2" FontSize="24"/> | |
<Button x:Name="ClearLogButton" Content="Clear Log" HorizontalAlignment="Center" Margin="14,259,11,124" VerticalAlignment="Center" Width="150" Click="ClearLogButton_Click" Height="40" Grid.Column="2" FontSize="24"/> | |
<TextBlock x:Name="textBlock1" HorizontalAlignment="Center" Margin="12,10,12,0" TextWrapping="Wrap" VerticalAlignment="Top" Grid.ColumnSpan="3" Height="56" Width="518" FontSize="21.333"><Run Text="Th"/><Run Text="is"/><Run Text=" program collect"/><Run Text="s the"/><Run Text=" values of "/><Run Text="the "/><Run Text="sensors. "/><Run Text="The logged data is written"/><Run Text=" to C:\EV3\Log.csv"/></TextBlock> | |
<TextBlock x:Name="textBlock" HorizontalAlignment="Left" Margin="10,388,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Grid.ColumnSpan="3" Height="25" Width="497" FontSize="16"><Run Text="LEGO EV3 Data Logger V"/><Run Text="3"/><Run Text=".0"/><LineBreak/></TextBlock> | |
<Label x:Name="GUILetterCount" Content="0" HorizontalAlignment="Left" Margin="20,82,0,0" VerticalAlignment="Top" FontSize="18.667" Width="50" Height="33" Grid.Column="1"/> | |
<Label x:Name="label" Content="Current Letter Count :" HorizontalAlignment="Left" Height="33" Margin="10,82,0,0" VerticalAlignment="Top" Width="193" FontSize="18.667" Grid.ColumnSpan="2"/> | |
<Label x:Name="label_Copy" Content="X :" HorizontalAlignment="Left" Height="33" Margin="15,308,0,0" VerticalAlignment="Top" Width="30" FontSize="18.667" Grid.Column="2"/> | |
<Label x:Name="label_Copy1" Content="Y :" HorizontalAlignment="Left" Height="33" Margin="101,308,0,0" VerticalAlignment="Top" Width="30" FontSize="18.667" Grid.Column="2"/> | |
<Label x:Name="label_Copy2" Content="Pen Pressed :" HorizontalAlignment="Left" Height="33" Margin="13,341,0,0" VerticalAlignment="Top" Width="123" FontSize="18.667" Grid.Column="2"/> | |
<Label x:Name="GUIxCoordinate" Content="0" HorizontalAlignment="Left" Margin="50,308,0,0" VerticalAlignment="Top" Grid.Column="2" FontSize="18.667" Width="50" Height="33"/> | |
<Label x:Name="GUIyCoordinate" Content="0" HorizontalAlignment="Left" Margin="136,308,-11,0" VerticalAlignment="Top" Grid.Column="2" FontSize="18.667" Width="50" Height="33"/> | |
<Label x:Name="GUIIsWriting" Content="0" HorizontalAlignment="Left" Margin="136,341,0,0" VerticalAlignment="Top" FontSize="18.667" Width="31" Height="33" Grid.Column="2"/> | |
<Rectangle Grid.ColumnSpan="2" Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="256" Margin="10,122,0,0" Stroke="Black" VerticalAlignment="Top" Width="357"/> | |
<Line x:Name="GUICursorV" HorizontalAlignment="Left" VerticalAlignment="Top" Stroke="Blue" | |
X1="0" X2="20" Y1="10" Y2="10" Height="254" Margin="12,124,0,0" Width="355" Grid.ColumnSpan="2" /> | |
<Line x:Name="GUICursorH" HorizontalAlignment="Right" VerticalAlignment="Top" Stroke="Blue" | |
X1="10" X2="10" Y1="0" Y2="20" Height="254" Margin="12,124,0,0" Width="355" Grid.ColumnSpan="2" /> | |
</Grid> | |
</Window> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment