Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2358 → Rev 2359

/MKLiveView/v1.0/Source/MainWindow.xaml
1180,8 → 1180,8
<Button x:Name="btnOSDLeave" Content="" HorizontalAlignment="Left" Height="34" Margin="144,90,0,0" VerticalAlignment="Top" Width="52" Click="btnOSDLeave_Click"/>
</Grid>
<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,46,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,20,0" VerticalAlignment="Top" Width="26" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/>
<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,456,0,3" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="640">
1199,7 → 1199,7
</Rectangle>
<Button x:Name="btnGetWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="112,0,0,0" VerticalAlignment="Bottom" Width="92" Click="btnGetWP_Click" ToolTip="Download WP-list from copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}">
<Button.Background>
<ImageBrush ImageSource="Images/FromCopterToPc1.png" Stretch="Uniform"/>
<ImageBrush ImageSource="Images/FromCopterToPc.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="12,0,0,-1" Height="40" VerticalAlignment="Bottom">
1215,7 → 1215,7
</Rectangle>
<Button x:Name="btnSendWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="13,0,0,0" VerticalAlignment="Bottom" Width="92" ToolTip="Upload WP-list to copter" BorderBrush="#FFBDBDBD" Click="btnSendWPList_Click" Style="{DynamicResource ButtonWithoutEffectStyle}">
<Button.Background>
<ImageBrush ImageSource="Images/WPToCopter1.png" Stretch="Uniform"/>
<ImageBrush ImageSource="Images/FromPcToCopter.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">
1248,7 → 1248,7
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnClearWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="434,0,0,1" VerticalAlignment="Bottom" Width="94" ToolTip="Download WP-list from copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearWPList_Click">
<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.Background>
<ImageBrush ImageSource="Images/DeleteList.png" Stretch="Uniform"/>
</Button.Background>
1265,7 → 1265,7
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnClearCopterList" Content="" HorizontalAlignment="Left" Height="36" Margin="535,0,0,1" VerticalAlignment="Bottom" Width="92" ToolTip="Download WP-list from copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearCopterList_Click">
<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.Background>
<ImageBrush ImageSource="Images/DeleteCopterList.png" Stretch="Uniform"/>
</Button.Background>
1290,24 → 1290,8
<Label x:Name="label4_Copy13" Content="save to file (.wpl)" HorizontalAlignment="Left" Margin="324,0,0,35" VerticalAlignment="Bottom" Width="98" Foreground="White"/>
</Grid>
</Border>
<Border Margin="10,324,0,75" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="941">
<Border Margin="10,340,0,75" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="831">
<Grid Margin="-0.5,-0.5,-0.5,4.5">
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="837,0,0,61" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSendActiveWP}" Value="True">
<Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnSendActiveWP" Content="" HorizontalAlignment="Left" Height="36" Margin="838,0,0,62" VerticalAlignment="Bottom" Width="93" ToolTip="Set WP as active WP" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnSendActiveWP_Click">
<Button.Background>
<ImageBrush ImageSource="Images/WPToCopter.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<ComboBox x:Name="cbWPEditType" HorizontalAlignment="Left" Height="22" Margin="10,24,0,0" VerticalAlignment="Top" Width="66">
<ComboBoxItem Content="WP"/>
<ComboBoxItem Content="POI"/>
1364,12 → 1348,11
</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"/>
<Label x:Name="label4_Copy27" Content="send as active WP" HorizontalAlignment="Left" Margin="835,-1,-1,97" VerticalAlignment="Bottom" Width="107" Foreground="White" Height="26"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="10,0,0,-2" Height="40" VerticalAlignment="Bottom">
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="12,0,0,-2" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSendActiveWP_Copy1}" Value="True">
<DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPSave}" Value="True">
<Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
</DataTrigger>
</Style.Triggers>
1376,17 → 1359,17
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnSendActiveWP_Copy1" Content="" HorizontalAlignment="Left" Height="36" Margin="11,0,0,-1" VerticalAlignment="Bottom" Width="93" ToolTip="Set WP as active WP" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnSendActiveWP2_Click">
<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">
<Button.Background>
<ImageBrush ImageSource="Images/WPToCopter.png" Stretch="Uniform"/>
<ImageBrush ImageSource="Images/Save.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Label x:Name="label4_Copy29" Content="set as active WP" HorizontalAlignment="Left" Margin="8,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="837,0,0,2" Height="40" VerticalAlignment="Bottom">
<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">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=btnWPEditAddCurrentPo}" Value="True">
<DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPSave}" Value="True">
<Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
</DataTrigger>
</Style.Triggers>
1393,15 → 1376,15
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnWPEditAddCurrentPos" Content="" HorizontalAlignment="Left" Height="36" Margin="838,0,0,3" VerticalAlignment="Bottom" Width="93" ToolTip="Set WP as active WP" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPEditAddCurrentPos_Click">
<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">
<Button.Background>
<ImageBrush ImageSource="Images/WPToCopter.png" Stretch="Uniform"/>
<ImageBrush ImageSource="Images/Delete.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Label x:Name="label4_Copy28" Content="add current Pos" HorizontalAlignment="Left" Margin="835,0,-1,38" VerticalAlignment="Bottom" Width="107" Foreground="White" Height="26"/>
<Label x:Name="label4_Copy30" Content="delete WP" HorizontalAlignment="Left" Margin="111,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
</Grid>
</Border>
<DataGrid x:Name="dgvWP" Margin="10,5,10,207" 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">
<DataGrid x:Name="dgvWP" Margin="10,5,10,191" 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">
<DataGrid.Columns>
<DataGridTextColumn Header="Index" Binding="{Binding Path=Index}"/>
<DataGridTextColumn Header="Type" Binding="{Binding Path=Type, Converter={StaticResource wpConvert}, ConverterParameter= Type}"/>
1420,12 → 1403,46
</DataGrid.Columns>
</DataGrid>
<CheckBox x:Name="checkBoxShowWPRoute" Content="show route" HorizontalAlignment="Right" Height="22" Margin="0,504,0,0" VerticalAlignment="Top" Width="84" Foreground="#FFFFFEFE" Click="checkBoxShowWPRoute_Click"/>
<Label x:Name="label4_Copy9" Content="distance" HorizontalAlignment="Right" Margin="0,462,46,0" VerticalAlignment="Top" Width="57" Foreground="White" Padding="0" Height="18" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" FontSize="13"/>
<Label x:Name="label4_Copy9" Content="distance" HorizontalAlignment="Right" Margin="0,462,51,0" VerticalAlignment="Top" Width="57" Foreground="White" Padding="0" Height="18" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" FontSize="13"/>
<Label x:Name="lblWPRouteDistance" Content="0 m" HorizontalAlignment="Right" Margin="0,463,4,0" VerticalAlignment="Top" Width="42" Foreground="White" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" Padding="0" FontSize="13"/>
<Label x:Name="label4_Copy14" Content="points NC (w/o POI)" HorizontalAlignment="Right" Margin="0,461,138,0" VerticalAlignment="Top" Width="118" Foreground="White" Height="20" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/>
<Label x:Name="lblWPCountNC" Content="##" HorizontalAlignment="Right" Margin="0,463,113,0" VerticalAlignment="Top" Width="25" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/>
<Label x:Name="label4_Copy15" Content="Index NC" HorizontalAlignment="Right" Margin="0,480,138,0" VerticalAlignment="Top" Width="65" Foreground="White" Height="21" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/>
<Label x:Name="lblWPIndexNC" Content="##" HorizontalAlignment="Right" Margin="0,482,113,0" VerticalAlignment="Top" Width="25" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/>
<Label x:Name="label4_Copy14" Content="points NC (w/o POI)" HorizontalAlignment="Right" Margin="0,461,143,0" VerticalAlignment="Top" Width="118" Foreground="White" Height="20" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/>
<Label x:Name="lblWPCountNC" Content="##" HorizontalAlignment="Right" Margin="0,463,118,0" VerticalAlignment="Top" Width="25" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/>
<Label x:Name="label4_Copy15" Content="Index NC" HorizontalAlignment="Right" Margin="0,480,143,0" VerticalAlignment="Top" Width="65" Foreground="White" Height="21" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/>
<Label x:Name="lblWPIndexNC" Content="##" HorizontalAlignment="Right" Margin="0,482,118,0" VerticalAlignment="Top" Width="25" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="857,0,0,135" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=btnWPEditAddCurrentPos}" Value="True">
<Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnWPEditAddCurrentPos" Content="" HorizontalAlignment="Left" Height="36" Margin="858,0,0,136" VerticalAlignment="Bottom" Width="93" ToolTip="add current copter position to WP list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPEditAddCurrentPos_Click">
<Button.Background>
<ImageBrush ImageSource="Images/CurrentPos.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Label x:Name="label4_Copy28" Content="add current Pos" HorizontalAlignment="Left" Margin="855,0,-1,171" VerticalAlignment="Bottom" Width="107" Foreground="White" Height="26"/>
<Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="857,0,0,75" Height="40" VerticalAlignment="Bottom">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSendActiveWP_Copy1}" Value="True">
<Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
<Button x:Name="btnSendActiveWP_Copy1" Content="" HorizontalAlignment="Left" Height="36" Margin="858,0,0,76" VerticalAlignment="Bottom" Width="93" ToolTip="Set WP as active WP" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnSendActiveWP_Click">
<Button.Background>
<ImageBrush ImageSource="Images/Blitz.png" Stretch="Uniform"/>
</Button.Background>
</Button>
<Label x:Name="label4_Copy29" Content="set as active WP" HorizontalAlignment="Left" Margin="855,0,0,111" VerticalAlignment="Bottom" Width="96" 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">