Subversion Repositories Projects

Rev

Rev 2335 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2335 Rev 2340
Line 662... Line 662...
662
 
662
 
663
                        </Grid>
663
                        </Grid>
664
                    </TabItem>
664
                    </TabItem>
665
                </TabControl>
665
                </TabControl>
666
            </Grid>
666
            </Grid>
667
            <Grid x:Name="GridSettings" Background="#7B000000" HorizontalAlignment="Left" Width="233" Margin="23,36,0,0">
667
            <Grid x:Name="GridSettings" Background="#7B000000" HorizontalAlignment="Left" Width="233" Margin="23,36,0,0" Visibility="Collapsed">
668
                <TabControl x:Name="tabControlSettings" HorizontalAlignment="Left" Width="229" Background="{x:Null}" Margin="2,0,0,0">
668
                <TabControl x:Name="tabControlSettings" HorizontalAlignment="Left" Width="229" Background="{x:Null}" Margin="2,0,0,0">
669
                    <TabItem Header="General" Margin="0,0,-0.237,0">
669
                    <TabItem Header="General" Margin="0,0,-0.237,0">
670
                        <Grid x:Name="TabGridGeneral">
670
                        <Grid x:Name="TabGridGeneral">
671
                            <local:SerialPortCtrl x:Name="serialPortCtrl" HorizontalAlignment="Left" Height="256" Margin="11,5,0,0" VerticalAlignment="Top" Width="210"/>
671
                            <local:SerialPortCtrl x:Name="serialPortCtrl" HorizontalAlignment="Left" Height="256" Margin="11,5,0,0" VerticalAlignment="Top" Width="210"/>
672
                            <GroupBox x:Name="groupBox" Header="timings autoupdate (ms)" HorizontalAlignment="Left" Height="129" Margin="10,278,0,0" VerticalAlignment="Top" Width="210" Foreground="White" BorderThickness="0.5,0.5,0.4,0.4" FontSize="14">
672
                            <GroupBox x:Name="groupBox" Header="timings autoupdate (ms)" HorizontalAlignment="Left" Height="129" Margin="10,278,0,0" VerticalAlignment="Top" Width="210" Foreground="White" BorderThickness="0.5,0.5,0.4,0.4" FontSize="14">
Line 968... Line 968...
968
                <Button x:Name="btnOSDForward" Content="Æ" HorizontalAlignment="Left" Height="34" Margin="203,5,0,0" VerticalAlignment="Top" Width="47" FontFamily="Wingdings 3" Click="btnOSDForward_Click"/>
968
                <Button x:Name="btnOSDForward" Content="Æ" HorizontalAlignment="Left" Height="34" Margin="203,5,0,0" VerticalAlignment="Top" Width="47" FontFamily="Wingdings 3" Click="btnOSDForward_Click"/>
969
                <Label x:Name="label_Copy7" Content="Page" HorizontalAlignment="Left" Margin="205,78,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="47"/>
969
                <Label x:Name="label_Copy7" Content="Page" HorizontalAlignment="Left" Margin="205,78,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="47"/>
970
                <Button x:Name="btnOSDEnter" Content="" HorizontalAlignment="Left" Height="34" Margin="87,90,0,0" VerticalAlignment="Top" Width="52" Click="btnOSDEnter_Click"/>
970
                <Button x:Name="btnOSDEnter" Content="" HorizontalAlignment="Left" Height="34" Margin="87,90,0,0" VerticalAlignment="Top" Width="52" Click="btnOSDEnter_Click"/>
971
                <Button x:Name="btnOSDLeave" Content="" HorizontalAlignment="Left" Height="34" Margin="144,90,0,0" VerticalAlignment="Top" Width="52" Click="btnOSDLeave_Click"/>
971
                <Button x:Name="btnOSDLeave" Content="" HorizontalAlignment="Left" Height="34" Margin="144,90,0,0" VerticalAlignment="Top" Width="52" Click="btnOSDLeave_Click"/>
972
            </Grid>
972
            </Grid>
973
            <Grid x:Name="GridWP" Margin="23,36,25,0" Background="#7F000000" Height="500" VerticalAlignment="Top" Visibility="Collapsed">
973
            <Grid x:Name="GridWP" Margin="23,36,25,0" Background="#7F000000" Height="500" VerticalAlignment="Top">
974
                <Label x:Name="label4" Content="points" HorizontalAlignment="Right" Margin="0,376,41,0" VerticalAlignment="Top" Width="53" Foreground="White" Height="26" HorizontalContentAlignment="Right"/>
974
                <Label x:Name="label4" Content="points" HorizontalAlignment="Right" Margin="0,376,41,0" VerticalAlignment="Top" Width="53" Foreground="White" Height="26" HorizontalContentAlignment="Right"/>
975
                <Label x:Name="lblWPCount" Content="##" HorizontalAlignment="Right" Margin="0,382,5,0" VerticalAlignment="Top" Width="38" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16"/>
975
                <Label x:Name="lblWPCount" Content="##" HorizontalAlignment="Right" Margin="0,382,5,0" VerticalAlignment="Top" Width="38" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16"/>
976
                <Label x:Name="label4_Copy" Content="WP Index" HorizontalAlignment="Left" Margin="94,194,0,0" VerticalAlignment="Top" Width="80" Foreground="White" Visibility="Hidden"/>
976
                <Label x:Name="label4_Copy" Content="WP Index" HorizontalAlignment="Left" Margin="94,194,0,0" VerticalAlignment="Top" Width="80" Foreground="White" Visibility="Hidden"/>
977
                <Label x:Name="lblWPIndex" Content="##" HorizontalAlignment="Left" Margin="170,194,0,0" VerticalAlignment="Top" Width="28" Foreground="White" Visibility="Hidden"/>
977
                <Label x:Name="lblWPIndex" Content="##" HorizontalAlignment="Left" Margin="170,194,0,0" VerticalAlignment="Top" Width="28" Foreground="White" Visibility="Hidden"/>
978
                <Border Margin="10,370,0,3" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="214">
978
                <Border Margin="10,359,0,3" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="322">
979
                    <Grid Margin="-0.5,-3.5,-0.5,4.5">
979
                    <Grid Margin="0,-4,-1,4">
980
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="103,25,0,61">
980
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="103,0,0,61" Height="40" VerticalAlignment="Bottom">
981
                            <Rectangle.Style>
981
                            <Rectangle.Style>
982
                                <Style TargetType="{x:Type Rectangle}">
982
                                <Style TargetType="{x:Type Rectangle}">
983
                                    <Style.Triggers>
983
                                    <Style.Triggers>
984
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnGetWPList}" Value="True">
984
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnGetWPList}" Value="True">
985
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
985
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
Line 991... Line 991...
991
                        <Button x:Name="btnGetWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="104,0,0,62" VerticalAlignment="Bottom" Width="92" Click="btnGetWP_Click" ToolTip="Download WP-list from copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}">
991
                        <Button x:Name="btnGetWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="104,0,0,62" VerticalAlignment="Bottom" Width="92" Click="btnGetWP_Click" ToolTip="Download WP-list from copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}">
992
                            <Button.Background>
992
                            <Button.Background>
993
                                <ImageBrush ImageSource="Images/FromCopterToPc.png" Stretch="Uniform"/>
993
                                <ImageBrush ImageSource="Images/FromCopterToPc.png" Stretch="Uniform"/>
994
                            </Button.Background>
994
                            </Button.Background>
995
                        </Button>
995
                        </Button>
996
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="4,25,0,61">
996
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="4,0,0,61" Height="40" VerticalAlignment="Bottom">
997
                            <Rectangle.Style>
997
                            <Rectangle.Style>
998
                                <Style TargetType="{x:Type Rectangle}">
998
                                <Style TargetType="{x:Type Rectangle}">
999
                                    <Style.Triggers>
999
                                    <Style.Triggers>
1000
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSendWPList}" Value="True">
1000
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSendWPList}" Value="True">
1001
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1001
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
Line 1007... Line 1007...
1007
                        <Button x:Name="btnSendWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="5,0,0,62" VerticalAlignment="Bottom" Width="92" ToolTip="Upload WP-list to copter" BorderBrush="#FFBDBDBD" Click="btnSendWPList_Click" Style="{DynamicResource ButtonWithoutEffectStyle}">
1007
                        <Button x:Name="btnSendWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="5,0,0,62" VerticalAlignment="Bottom" Width="92" ToolTip="Upload WP-list to copter" BorderBrush="#FFBDBDBD" Click="btnSendWPList_Click" Style="{DynamicResource ButtonWithoutEffectStyle}">
1008
                            <Button.Background>
1008
                            <Button.Background>
1009
                                <ImageBrush ImageSource="Images/FromPcToCopter.png" Stretch="Uniform"/>
1009
                                <ImageBrush ImageSource="Images/FromPcToCopter.png" Stretch="Uniform"/>
1010
                            </Button.Background>
1010
                            </Button.Background>
1011
                        </Button>
1011
                        </Button>
1012
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="4,86,0,0">
1012
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="4,0,0,0" Height="40" VerticalAlignment="Bottom">
1013
                            <Rectangle.Style>
1013
                            <Rectangle.Style>
1014
                                <Style TargetType="{x:Type Rectangle}">
1014
                                <Style TargetType="{x:Type Rectangle}">
1015
                                    <Style.Triggers>
1015
                                    <Style.Triggers>
1016
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnLoadWPLFile}" Value="True">
1016
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnLoadWPLFile}" Value="True">
1017
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1017
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
Line 1026... Line 1026...
1026
                            </Button.Background>
1026
                            </Button.Background>
1027
                        </Button>
1027
                        </Button>
1028
                        <Label x:Name="label4_Copy5" Content="receive from copter" HorizontalAlignment="Left" Margin="98,0,0,98" VerticalAlignment="Bottom" Width="116" Foreground="White"/>
1028
                        <Label x:Name="label4_Copy5" Content="receive from copter" HorizontalAlignment="Left" Margin="98,0,0,98" VerticalAlignment="Bottom" Width="116" Foreground="White"/>
1029
                        <Label x:Name="label4_Copy6" Content="send to copter" HorizontalAlignment="Left" Margin="1,0,0,98" VerticalAlignment="Bottom" Width="86" Foreground="White"/>
1029
                        <Label x:Name="label4_Copy6" Content="send to copter" HorizontalAlignment="Left" Margin="1,0,0,98" VerticalAlignment="Bottom" Width="86" Foreground="White"/>
1030
                        <Label x:Name="label4_Copy7" Content="load from file" HorizontalAlignment="Left" Margin="0,0,0,36" VerticalAlignment="Bottom" Width="86" Foreground="White"/>
1030
                        <Label x:Name="label4_Copy7" Content="load from file" HorizontalAlignment="Left" Margin="0,0,0,36" VerticalAlignment="Bottom" Width="86" Foreground="White"/>
1031
                        <Rectangle HorizontalAlignment="Left" Width="48" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="149,86,0,0">
1031
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="221,0,0,0" Height="40" VerticalAlignment="Bottom">
1032
                            <Rectangle.Style>
1032
                            <Rectangle.Style>
1033
                                <Style TargetType="{x:Type Rectangle}">
1033
                                <Style TargetType="{x:Type Rectangle}">
1034
                                    <Style.Triggers>
1034
                                    <Style.Triggers>
1035
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnClearWPList}" Value="True">
1035
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnClearWPList}" Value="True">
1036
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1036
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1037
                                        </DataTrigger>
1037
                                        </DataTrigger>
1038
                                    </Style.Triggers>
1038
                                    </Style.Triggers>
1039
                                </Style>
1039
                                </Style>
1040
                            </Rectangle.Style>
1040
                            </Rectangle.Style>
1041
                        </Rectangle>
1041
                        </Rectangle>
1042
                        <Button x:Name="btnClearWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="149,0,0,2" VerticalAlignment="Bottom" Width="48" ToolTip="Download WP-list from copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearWPList_Click">
1042
                        <Button x:Name="btnClearWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="221,0,0,2" VerticalAlignment="Bottom" Width="94" ToolTip="Download WP-list from copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearWPList_Click">
1043
                            <Button.Background>
1043
                            <Button.Background>
1044
                                <ImageBrush ImageSource="Images/DeleteList.png" Stretch="Uniform"/>
1044
                                <ImageBrush ImageSource="Images/DeleteList.png" Stretch="Uniform"/>
1045
                            </Button.Background>
1045
                            </Button.Background>
1046
                        </Button>
1046
                        </Button>
-
 
1047
                        <Label x:Name="label4_Copy11" Content="clear local list" HorizontalAlignment="Left" Margin="217,0,0,36" VerticalAlignment="Bottom" Width="93" Foreground="White"/>
-
 
1048
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="221,0,0,61" Height="40" VerticalAlignment="Bottom">
-
 
1049
                            <Rectangle.Style>
-
 
1050
                                <Style TargetType="{x:Type Rectangle}">
-
 
1051
                                    <Style.Triggers>
-
 
1052
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnClearCopterList}" Value="True">
-
 
1053
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
-
 
1054
                                        </DataTrigger>
-
 
1055
                                    </Style.Triggers>
-
 
1056
                                </Style>
-
 
1057
                            </Rectangle.Style>
-
 
1058
                        </Rectangle>
1047
                        <Label x:Name="label4_Copy11" Content="clear list" HorizontalAlignment="Left" Margin="145,0,0,36" VerticalAlignment="Bottom" Width="56" Foreground="White"/>
1059
                        <Button x:Name="btnClearCopterList" Content="" HorizontalAlignment="Left" Height="36" Margin="223,0,0,63" VerticalAlignment="Bottom" Width="92" ToolTip="Download WP-list from copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearCopterList_Click">
-
 
1060
                            <Button.Background>
-
 
1061
                                <ImageBrush ImageSource="Images/DeleteCopterList.png" Stretch="Uniform"/>
-
 
1062
                            </Button.Background>
-
 
1063
                        </Button>
-
 
1064
                        <Label x:Name="label4_Copy12" Content="clear copter list" HorizontalAlignment="Left" Margin="217,0,0,98" VerticalAlignment="Bottom" Width="93" Foreground="White" Height="26"/>
1048
                    </Grid>
1065
                    </Grid>
1049
                </Border>
1066
                </Border>
1050
                <DataGrid x:Name="dgvWP" Margin="10,5,10,143" Background="{x:Null}" ItemsSource="{Binding}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14" HorizontalGridLinesBrush="#FF688CAF" VerticalGridLinesBrush="#FF688CAF" HeadersVisibility="Column" BorderBrush="{x:Null}" Padding="0" AutoGenerateColumns="False">
1067
                <DataGrid x:Name="dgvWP" Margin="10,5,10,143" 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">
1051
                    <DataGrid.Columns>
1068
                    <DataGrid.Columns>
1052
                        <DataGridTextColumn Header="Index" Binding="{Binding Path=Index}"/>
1069
                        <DataGridTextColumn Header="Index" Binding="{Binding Path=Index}"/>
1053
                        <DataGridTextColumn Header="Type" Binding="{Binding Path=Type, Converter={StaticResource wpConvert}, ConverterParameter= Type}"/>
1070
                        <DataGridTextColumn Header="Type" Binding="{Binding Path=Type, Converter={StaticResource wpConvert}, ConverterParameter= Type}"/>
1054
                        <DataGridTextColumn Header="Name" Binding="{Binding Path=Name}"/>
1071
                        <DataGridTextColumn Header="Name" Binding="{Binding Path=Name}"/>
1055
                        <DataGridTextColumn Header="Latitude" Binding="{Binding Path=Latitude, Converter={StaticResource wpConvert}, ConverterParameter= Latitude}"/>
1072
                        <DataGridTextColumn Header="Latitude" Binding="{Binding Path=Latitude, Converter={StaticResource wpConvert}, ConverterParameter= Latitude}"/>