Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2384 → Rev 2385

/MKLiveView/v1.0/Source/MainWindow.xaml
823,7 → 823,7
</TabItem>
</TabControl>
</Grid>
<Grid x:Name="GridSettings" Background="#7B000000" HorizontalAlignment="Left" Width="233" Margin="23,36,0,0">
<Grid x:Name="GridSettings" Background="#7B000000" HorizontalAlignment="Left" Width="233" Margin="23,36,0,0" Visibility="Collapsed">
<TabControl x:Name="tabControlSettings" HorizontalAlignment="Left" Width="229" Background="{x:Null}" Margin="4,0,0,0">
<TabItem Header="General" Margin="0,0,5.849,0">
<Grid x:Name="TabGridGeneral">
1120,6 → 1120,14
<ComboBoxItem Content="pink"/>
</ComboBox>
<Label x:Name="label4_Copy31" Content="Landing color" HorizontalAlignment="Right" Margin="0,137,12,0" VerticalAlignment="Top" Width="96" Foreground="White"/>
<ComboBox x:Name="comboBoxCopterHeadingColor" Margin="0,29,11,0" SelectedIndex="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" HorizontalAlignment="Right" Width="95" Height="33" VerticalAlignment="Top" DropDownClosed="comboBoxCopterHeadingColor_DropDownClosed">
<ComboBoxItem Content="red"/>
<ComboBoxItem Content="green"/>
<ComboBoxItem Content="blue"/>
<ComboBoxItem Content="yellow"/>
<ComboBoxItem Content="pink"/>
</ComboBox>
<Label x:Name="label4_Copy33" Content="Heading color" HorizontalAlignment="Right" Margin="0,3,12,0" VerticalAlignment="Top" Width="96" Foreground="White"/>
 
</Grid>
</Border>
1197,13 → 1205,13
</LinearGradientBrush>
</Label.Background>
</Label>
<Grid x:Name="GridWP" Margin="23,36,25,0" Background="#7F000000" Height="526" VerticalAlignment="Top" Visibility="Collapsed">
<Grid x:Name="GridWP" Margin="23,36,25,0" Background="#7F000000" Height="526" VerticalAlignment="Top">
<Label x:Name="label4" Content="points" HorizontalAlignment="Right" Margin="0,480,51,0" VerticalAlignment="Top" Width="53" Foreground="White" Height="19" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/>
<Label x:Name="lblWPCount" Content="##" HorizontalAlignment="Right" Margin="0,482,19,0" VerticalAlignment="Top" Width="26" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/>
<Label x:Name="label4_Copy" Content="WP Index" HorizontalAlignment="Left" Margin="94,194,0,0" VerticalAlignment="Top" Width="80" Foreground="White" Visibility="Hidden"/>
<Label x:Name="lblWPIndex" Content="##" HorizontalAlignment="Left" Margin="170,194,0,0" VerticalAlignment="Top" Width="28" Foreground="White" Visibility="Hidden"/>
<Border Margin="10,458,0,1" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="640">
<Grid Margin="-0.5,-0.5,-0.5,4.5">
<Border Margin="10,458,0,1" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="584">
<Grid Margin="0,0,-1,4">
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="111,0,0,-1" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
1236,7 → 1244,7
<ImageBrush ImageSource="Images/WPToCopter1.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="229,0,0,-1" Height="40" VerticalAlignment="Bottom">
<Rectangle HorizontalAlignment="Left" Width="68" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="228,0,0,-1" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
1247,7 → 1255,7
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnLoadWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="229,0,0,0" VerticalAlignment="Bottom" Width="94" ToolTip="load wp-list from file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnLoadWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}">
<Button x:Name="btnLoadWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="228,0,0,0" VerticalAlignment="Bottom" Width="68" ToolTip="load wp-list from file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnLoadWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}">
<Button.Background>
<ImageBrush ImageSource="Images/LoadFile.png" Stretch="Uniform"/>
</Button.Background>
1254,8 → 1262,8
</Button>
<Label x:Name="label4_Copy5" Content="receive from copter" HorizontalAlignment="Left" Margin="106,0,0,36" VerticalAlignment="Bottom" Width="116" Foreground="White" Height="26"/>
<Label x:Name="label4_Copy6" Content="send to copter" HorizontalAlignment="Left" Margin="9,0,0,36" VerticalAlignment="Bottom" Width="86" Foreground="White" Height="26"/>
<Label x:Name="label4_Copy7" Content="load from file" HorizontalAlignment="Left" Margin="225,0,0,35" VerticalAlignment="Bottom" Width="86" Foreground="White"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="434,0,0,-1" Height="40" VerticalAlignment="Bottom">
<Label x:Name="label4_Copy7" Content="load file" HorizontalAlignment="Left" Margin="225,0,0,35" VerticalAlignment="Bottom" Width="62" Foreground="White"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="384,0,0,-1" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
1266,13 → 1274,13
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnClearWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="434,0,0,1" VerticalAlignment="Bottom" Width="94" ToolTip="clear all items from the local WP list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearWPList_Click">
<Button x:Name="btnClearWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="384,0,0,1" VerticalAlignment="Bottom" Width="94" ToolTip="clear all items from the local WP list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearWPList_Click">
<Button.Background>
<ImageBrush ImageSource="Images/DeleteList.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Label x:Name="label4_Copy11" Content="clear local list" HorizontalAlignment="Left" Margin="430,0,0,35" VerticalAlignment="Bottom" Width="93" Foreground="White"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="533,0,0,-1" Height="40" VerticalAlignment="Bottom">
<Label x:Name="label4_Copy11" Content="clear local list" HorizontalAlignment="Left" Margin="380,0,0,35" VerticalAlignment="Bottom" Width="93" Foreground="White"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="483,0,0,-1" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
1283,13 → 1291,13
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnClearCopterList" Content="" HorizontalAlignment="Left" Height="36" Margin="535,0,0,1" VerticalAlignment="Bottom" Width="92" ToolTip="clear all items from the WP list in the copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearCopterList_Click">
<Button x:Name="btnClearCopterList" Content="" HorizontalAlignment="Left" Height="36" Margin="485,0,0,1" VerticalAlignment="Bottom" Width="92" ToolTip="clear all items from the WP list in the copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearCopterList_Click">
<Button.Background>
<ImageBrush ImageSource="Images/DeleteCopterList.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Label x:Name="label4_Copy12" Content="clear copter list" HorizontalAlignment="Left" Margin="529,0,0,36" VerticalAlignment="Bottom" Width="93" Foreground="White" Height="26"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="328,0,0,-1" Height="40" VerticalAlignment="Bottom">
<Label x:Name="label4_Copy12" Content="clear copter list" HorizontalAlignment="Left" Margin="479,0,0,36" VerticalAlignment="Bottom" Width="93" Foreground="White" Height="26"/>
<Rectangle HorizontalAlignment="Left" Width="68" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="300,0,0,-1" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
1300,12 → 1308,12
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnSaveWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="328,0,0,0" VerticalAlignment="Bottom" Width="94" ToolTip="save list to *.wpl file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnSaveWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}">
<Button x:Name="btnSaveWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="300,0,0,0" VerticalAlignment="Bottom" Width="68" ToolTip="save list to *.wpl file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnSaveWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}">
<Button.Background>
<ImageBrush ImageSource="Images/SaveFile.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Label x:Name="label4_Copy13" Content="save to file (.wpl)" HorizontalAlignment="Left" Margin="324,0,0,35" VerticalAlignment="Bottom" Width="98" Foreground="White"/>
<Label x:Name="label4_Copy13" Content="save file" HorizontalAlignment="Left" Margin="297,0,0,35" VerticalAlignment="Bottom" Width="71" Foreground="White"/>
</Grid>
</Border>
<Border Margin="10,338,0,73" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="831">
1367,7 → 1375,7
</ComboBox>
<Label x:Name="label4_Copy26" Content="Out1Timer" HorizontalAlignment="Left" Margin="762,6,0,0" Width="63" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
<TextBox x:Name="tbWPEditOut1" HorizontalAlignment="Left" Height="22" Margin="762,24,0,0" VerticalAlignment="Top" Width="42" IsUndoEnabled="False" MaxLines="1" MaxLength="2" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="12,0,0,-2" Height="40" VerticalAlignment="Bottom">
<Rectangle HorizontalAlignment="Left" Width="81" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="8,0,0,-2" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
1378,13 → 1386,13
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnEditWPSave" Content="" HorizontalAlignment="Left" Height="36" Margin="13,0,0,-1" VerticalAlignment="Bottom" Width="93" ToolTip="save the changes made to the list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPSave_Click">
<Button x:Name="btnEditWPSave" Content="" HorizontalAlignment="Left" Height="36" Margin="9,0,0,-1" VerticalAlignment="Bottom" Width="80" ToolTip="save the changes made to the list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPSave_Click">
<Button.Background>
<ImageBrush ImageSource="Images/Save.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Label x:Name="label4_Copy27" Content="save changes" HorizontalAlignment="Left" Margin="10,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="113,0,0,-2" Height="40" VerticalAlignment="Bottom">
<Label x:Name="label4_Copy27" Content="save changes" HorizontalAlignment="Left" Margin="6,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
<Rectangle HorizontalAlignment="Left" Width="81" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="93,0,0,-2" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
1395,12 → 1403,12
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnEditWPDel" Content="" HorizontalAlignment="Left" Height="36" Margin="114,0,0,-1" VerticalAlignment="Bottom" Width="93" ToolTip="delete WP from list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPDel_Click">
<Button x:Name="btnEditWPDel" Content="" HorizontalAlignment="Left" Height="36" Margin="93,0,0,-1" VerticalAlignment="Bottom" Width="81" ToolTip="delete WP from list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPDel_Click">
<Button.Background>
<ImageBrush ImageSource="Images/Delete.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Label x:Name="label4_Copy30" Content="delete WP" HorizontalAlignment="Left" Margin="111,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
<Label x:Name="label4_Copy30" Content="delete WP" HorizontalAlignment="Left" Margin="93,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="566,0,0,-2" Height="40" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.525">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
1418,6 → 1426,23
</Button.Background>
</Button>
<Label x:Name="label4_Copy29" Content="set as active WP" HorizontalAlignment="Left" Margin="564,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
<Rectangle HorizontalAlignment="Left" Width="81" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="191,0,0,-2" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPSendToCopter}" Value="True">
<Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnEditWPSendToCopter" Content="" HorizontalAlignment="Left" Height="36" Margin="191,0,0,-1" VerticalAlignment="Bottom" Width="81" ToolTip="send selected WP to copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPSendToCopter_Click">
<Button.Background>
<ImageBrush ImageSource="Images/SendToCopter.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Label x:Name="label4_Copy34" Content="send to copter" HorizontalAlignment="Left" Margin="191,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
</Grid>
</Border>
<DataGrid x:Name="dgvWP" Margin="10,5,10,195" Background="{x:Null}" ItemsSource="{Binding}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14" HorizontalGridLinesBrush="#FF688CAF" VerticalGridLinesBrush="#FF688CAF" HeadersVisibility="Column" BorderBrush="{x:Null}" Padding="0" AutoGenerateColumns="False" MouseUp="dgvWP_MouseUp" CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeRows="False" MouseDoubleClick="dgvWP_MouseDoubleClick" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" IsReadOnly="True">
1472,7 → 1497,7
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<Rectangle HorizontalAlignment="Left" Width="59" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="892,0,0,72" Height="43" VerticalAlignment="Bottom">
<Rectangle HorizontalAlignment="Left" Width="59" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="608,0,0,7" Height="37" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
1483,12 → 1508,12
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnWPSimulateStart" Content="" HorizontalAlignment="Left" Height="36" Margin="893,0,0,76" VerticalAlignment="Bottom" Width="58" ToolTip="Start/stop simulationmode on copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPSimulateStart_Click">
<Button x:Name="btnWPSimulateStart" Content="" HorizontalAlignment="Left" Height="33" Margin="608,0,0,9" VerticalAlignment="Bottom" Width="58" ToolTip="Start/stop simulationmode on copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPSimulateStart_Click">
<Button.Background>
<ImageBrush ImageSource="Images/Test.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Label x:Name="label4_Copy32" Content="Simulation" HorizontalAlignment="Left" Margin="888,0,-1,111" VerticalAlignment="Bottom" Width="74" Foreground="White" Height="26"/>
<Label x:Name="label4_Copy32" Content="Simulation" HorizontalAlignment="Left" Margin="603,0,0,40" VerticalAlignment="Bottom" Width="74" Foreground="White" Height="26"/>
</Grid>
<Grid x:Name="GridSideBarR" Background="#66000000" Margin="0,36,0,0" HorizontalAlignment="Right" Width="23">
<Label x:Name="labelMotordata" Content="Motors" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-25,233,-26,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" MouseDown="labelMotorData_MouseDown" FontSize="14" HorizontalAlignment="Left" Width="74" Height="22" VerticalAlignment="Top">