Subversion Repositories Projects

Rev

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

Rev 2425 Rev 2429
Line 372... Line 372...
372
            </ColorAnimationUsingKeyFrames>
372
            </ColorAnimationUsingKeyFrames>
373
        </Storyboard>
373
        </Storyboard>
374
        <Style x:Key="HideSwitchNCLabel" TargetType="{x:Type Label}">
374
        <Style x:Key="HideSwitchNCLabel" TargetType="{x:Type Label}">
375
            <Setter Property="Visibility" Value="Collapsed" />
375
            <Setter Property="Visibility" Value="Collapsed" />
376
            <Style.Triggers>
376
            <Style.Triggers>
377
                <DataTrigger Binding="{Binding Tag.Content}" Value="FC">
377
                <DataTrigger Binding="{Binding Tag.Text}" Value="FC">
378
                    <Setter Property="Visibility" Value="Visible" />
378
                    <Setter Property="Visibility" Value="Visible" />
379
                </DataTrigger>
379
                </DataTrigger>
380
            </Style.Triggers>
380
            </Style.Triggers>
381
        </Style>
381
        </Style>
382
        <Style x:Key="HideSwitchNCButton" TargetType="{x:Type Button}">
382
        <Style x:Key="HideSwitchNCButton" TargetType="{x:Type Button}">
383
            <Setter Property="Visibility" Value="Hidden" />
383
            <Setter Property="Visibility" Value="Hidden" />
384
            <Style.Triggers>
384
            <Style.Triggers>
385
                <DataTrigger Binding="{Binding Tag.Content}" Value="FC">
385
                <DataTrigger Binding="{Binding Tag.Text}" Value="FC">
386
                    <Setter Property="Visibility" Value="Visible" />
386
                    <Setter Property="Visibility" Value="Visible" />
387
                </DataTrigger>
387
                </DataTrigger>
388
            </Style.Triggers>
388
            </Style.Triggers>
389
        </Style>
389
        </Style>
390
    </Window.Resources>
390
    </Window.Resources>
Line 592... Line 592...
592
                            </Style.Triggers>
592
                            </Style.Triggers>
593
                        </Style>
593
                        </Style>
594
                    </Label.Style>
594
                    </Label.Style>
595
                </Label>
595
                </Label>
596
            </Grid>
596
            </Grid>
597
            <Grid x:Name="GridData" Background="#7F000000" HorizontalAlignment="Left" Width="204" Margin="23,36,0,0" >
597
            <Grid x:Name="GridData" Background="#7F000000" HorizontalAlignment="Left" Width="204" Margin="23,36,0,0" Visibility="Collapsed" >
598
                <TabControl x:Name="tabControl" HorizontalAlignment="Left" Height="619" VerticalAlignment="Top" Width="200" Background="{x:Null}" Margin="2,0,0,0">
598
                <TabControl x:Name="tabControl" HorizontalAlignment="Left" Height="619" VerticalAlignment="Top" Width="200" Background="{x:Null}" Margin="2,0,0,0">
599
                    <TabItem Header="Analog">
599
                    <TabItem Header="Analog">
600
                        <Grid>
600
                        <Grid>
601
                            <TextBlock x:Name="tbVolt" HorizontalAlignment="Left" Height="23" Margin="110,42,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/>
601
                            <TextBlock x:Name="tbVolt" HorizontalAlignment="Left" Height="23" Margin="110,42,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/>
602
                            <TextBlock x:Name="tbCur" HorizontalAlignment="Left" Height="23" Margin="110,60,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/>
602
                            <TextBlock x:Name="tbCur" HorizontalAlignment="Left" Height="23" Margin="110,60,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/>
Line 880... Line 880...
880
                                    <Label x:Name="label_Copy5" Content="Motors" HorizontalAlignment="Left" Margin="111,122,0,-30.62" VerticalAlignment="Top" Foreground="White" Padding="0" Width="51"/>
880
                                    <Label x:Name="label_Copy5" Content="Motors" HorizontalAlignment="Left" Margin="111,122,0,-30.62" VerticalAlignment="Top" Foreground="White" Padding="0" Width="51"/>
881
                                    <ComboBox x:Name="cBoxMotors" HorizontalAlignment="Left" Height="23" Margin="160,120,0,-33.62" VerticalAlignment="Top" Width="47" Padding="6,0,0,0" DropDownClosed="cBoxMotors_DropDownClosed"/>
881
                                    <ComboBox x:Name="cBoxMotors" HorizontalAlignment="Left" Height="23" Margin="160,120,0,-33.62" VerticalAlignment="Top" Width="47" Padding="6,0,0,0" DropDownClosed="cBoxMotors_DropDownClosed"/>
882
                                </Grid>
882
                                </Grid>
883
                            </GroupBox>
883
                            </GroupBox>
884
                            <TextBox x:Name="tbSettingsCapa" HorizontalAlignment="Left" Height="21" Margin="74,457,0,0" TextWrapping="Wrap" Text="5000" VerticalAlignment="Top" Width="36" Visibility="Hidden"/>
884
                            <TextBox x:Name="tbSettingsCapa" HorizontalAlignment="Left" Height="21" Margin="74,457,0,0" TextWrapping="Wrap" Text="5000" VerticalAlignment="Top" Width="36" Visibility="Hidden"/>
885
                            <Button x:Name="buttonSwitchNC" Content="switch to NC" HorizontalAlignment="Left" Height="49" Margin="48,447,0,0" VerticalAlignment="Top" Width="112" Click="buttonSwitchNC_Click" Style="{StaticResource HideSwitchNCButton}"  Tag="{Binding ElementName=tbCtrl}" FontSize="16" Visibility="Hidden" Background="#FFF7ACAC" BorderBrush="Red"/>
885
                            <Button x:Name="buttonSwitchNC" Content="switch to NC" HorizontalAlignment="Left" Height="49" Margin="48,447,0,0" VerticalAlignment="Top" Width="112" Click="buttonSwitchNC_Click" FontSize="16" Background="#FFF7ACAC" BorderBrush="Red" Visibility="Hidden"/>
886
                        </Grid>
886
                        </Grid>
887
                    </TabItem>
887
                    </TabItem>
888
                    <TabItem Header="Style" Margin="-6.849,0,-2.022,0">
888
                    <TabItem Header="Style" Margin="-6.849,0,-2.022,0">
889
                        <Grid x:Name="TabGridStyle">
889
                        <Grid x:Name="TabGridStyle">
890
                            <Label x:Name="label_Copy6" Content="Main window scale" HorizontalAlignment="Left" Margin="9,7,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="122"/>
890
                            <Label x:Name="label_Copy6" Content="Main window scale" HorizontalAlignment="Left" Margin="9,7,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="122"/>
Line 1241... Line 1241...
1241
                        <GradientStop Color="#FFFFD07F" Offset="0.391"/>
1241
                        <GradientStop Color="#FFFFD07F" Offset="0.391"/>
1242
                        <GradientStop Color="#FFFFA261" Offset="1"/>
1242
                        <GradientStop Color="#FFFFA261" Offset="1"/>
1243
                    </LinearGradientBrush>
1243
                    </LinearGradientBrush>
1244
                </Label.Background>
1244
                </Label.Background>
1245
            </Label>
1245
            </Label>
1246
            <Grid x:Name="GridWP" Margin="23,36,25,0" Background="#7F000000" Height="526" VerticalAlignment="Top" Visibility="Collapsed">
1246
            <Grid x:Name="GridWP" Margin="23,36,25,0" Background="#7F000000" Height="526" VerticalAlignment="Top">
1247
                <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" Visibility="Hidden"/>
1247
                <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" Visibility="Hidden"/>
1248
                <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" Visibility="Hidden"/>
1248
                <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" Visibility="Hidden"/>
1249
                <Label x:Name="label4_Copy" Content="WP Index" HorizontalAlignment="Left" Margin="94,194,0,0" VerticalAlignment="Top" Width="80" Foreground="White" Visibility="Hidden"/>
1249
                <Label x:Name="label4_Copy" Content="WP Index" HorizontalAlignment="Left" Margin="94,194,0,0" VerticalAlignment="Top" Width="80" Foreground="White" Visibility="Hidden"/>
1250
                <Label x:Name="lblWPIndex" Content="##" HorizontalAlignment="Left" Margin="170,194,0,0" VerticalAlignment="Top" Width="28" Foreground="White" Visibility="Hidden"/>
1250
                <Label x:Name="lblWPIndex" Content="##" HorizontalAlignment="Left" Margin="170,194,0,0" VerticalAlignment="Top" Width="28" Foreground="White" Visibility="Hidden"/>
1251
                <Border Margin="5,458,0,1" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="577">
1251
                <Border Margin="5,458,0,1" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="577">
Line 1692... Line 1692...
1692
                    <Image x:Name="imageFlightTime_Copy1" Height="23" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/Altitude.png" HorizontalAlignment="Left" Width="8.25" Canvas.Left="48.688" Canvas.Top="4"/>
1692
                    <Image x:Name="imageFlightTime_Copy1" Height="23" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/Altitude.png" HorizontalAlignment="Left" Width="8.25" Canvas.Left="48.688" Canvas.Top="4"/>
1693
                </Canvas>
1693
                </Canvas>
1694
            </Grid>
1694
            </Grid>
1695
            <!--<Rectangle x:Name="rctConnection" Fill="#FFF4F4F5" Height="16" Margin="0,10,7,0" Stroke="Black" VerticalAlignment="Top" HorizontalAlignment="Right" Width="15"/>-->
1695
            <!--<Rectangle x:Name="rctConnection" Fill="#FFF4F4F5" Height="16" Margin="0,10,7,0" Stroke="Black" VerticalAlignment="Top" HorizontalAlignment="Right" Width="15"/>-->
1696
        </Grid>
1696
        </Grid>
1697
        <Label x:Name="labelSwitchToNavi" Content="The communication is set to FlightControl&#xA;The necessary data can ONLY be accessed &#xA;by the NaviControl!&#xA;Please switch to NaviControl in the settings tab" HorizontalAlignment="Left" Height="161" Margin="347,147,0,0" VerticalAlignment="Top" Width="574" Foreground="White" FontSize="26.667" Style="{StaticResource HideSwitchNCLabel}" Tag="{Binding ElementName=tbCtrl}" >
1697
        <Label x:Name="labelSwitchToNavi" Content="The communication is set to FlightControl&#xA;The necessary data can ONLY be accessed &#xA;by the NaviControl!&#xA;Please switch to NaviControl in the settings tab" HorizontalAlignment="Left" Height="161" Margin="347,147,0,0" VerticalAlignment="Top" Width="574" Foreground="White" FontSize="26.667" Visibility="Collapsed">
1698
            <Label.Background>
1698
            <Label.Background>
1699
                <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
1699
                <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
1700
                    <GradientStop Color="#B2FF2121" Offset="0.457"/>
1700
                    <GradientStop Color="#B2FF2121" Offset="0.457"/>
1701
                    <GradientStop Color="Red" Offset="1"/>
1701
                    <GradientStop Color="Red" Offset="1"/>
1702
                </LinearGradientBrush>
1702
                </LinearGradientBrush>