Changeset 8613


Ignore:
Timestamp:
Feb 16, 2020, 5:04:41 PM (2 years ago)
Author:
Sven Rech
Message:

Primes tutorial Ulam's Spiral: Relabeled rotation slider and readjusted layout of both sliders.

Location:
trunk/CrypPlugins/Primes/Primes
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Primes/Primes/Resources/lang/WpfControls/Distribution/Distribution.Designer.cs

    r8603 r8613  
    836836       
    837837        /// <summary>
    838         ///   Sucht eine lokalisierte Zeichenfolge, die Rotation: ähnelt.
     838        ///   Sucht eine lokalisierte Zeichenfolge, die Rotate the spiral ähnelt.
    839839        /// </summary>
    840840        public static string ulam_rotate {
  • trunk/CrypPlugins/Primes/Primes/Resources/lang/WpfControls/Distribution/Distribution.de.resx

    r8603 r8613  
    342342  </data>
    343343  <data name="ulam_rotate" xml:space="preserve">
    344     <value>Drehnung: </value>
     344    <value>Die Spirale drehen</value>
    345345  </data>
    346346  <data name="ulam_zoom" xml:space="preserve">
  • trunk/CrypPlugins/Primes/Primes/Resources/lang/WpfControls/Distribution/Distribution.resx

    r8603 r8613  
    377377  </data>
    378378  <data name="ulam_rotate" xml:space="preserve">
    379     <value>Rotation: </value>
     379    <value>Rotate the spiral</value>
    380380  </data>
    381381  <data name="ulam_validatorrangemessage" xml:space="preserve">
  • trunk/CrypPlugins/Primes/Primes/WpfControls/PrimesDistribution/Spirals/UlamSpiral.xaml

    r5231 r8613  
    3333        </ScrollViewer>
    3434
    35         <StackPanel Grid.Row="1" Name="pnlSliders">
    36             <TextBlock HorizontalAlignment="Left" Text="{x:Static lang:Distribution.ulam_zoom}"></TextBlock>
    37             <Slider Name="silderScale" Minimum="0.5" Maximum="2" Value="1" />
    38             <DockPanel>
    39                 <TextBlock HorizontalAlignment="Left" Text="{x:Static lang:Distribution.ulam_rotate}"></TextBlock>
    40                 <TextBlock HorizontalAlignment="Left" Name="lblRotation">0°</TextBlock>
    41             </DockPanel>
    42             <Slider Name="silderRotate" Minimum="0" Maximum="360" Value="0" ValueChanged="silderRotate_ValueChanged" />
    43         </StackPanel>
     35        <Grid Grid.Row="1">
     36            <Grid.RowDefinitions>
     37                <RowDefinition Height="Auto" />
     38                <RowDefinition Height="Auto" />
     39            </Grid.RowDefinitions>
     40            <Grid.ColumnDefinitions>
     41                <ColumnDefinition Width="Auto" />
     42                <ColumnDefinition Width="*" />
     43                <ColumnDefinition Width="Auto" MinWidth="50" />
     44            </Grid.ColumnDefinitions>
     45
     46            <TextBlock Grid.Column="0" Grid.Row="0" Text="{x:Static lang:Distribution.ulam_zoom}" Margin="0,0,10,0" />
     47            <Slider Grid.Column="1" Grid.Row="0" Name="silderScale" Minimum="0.5" Maximum="2" Value="1" />
     48
     49            <TextBlock Grid.Column="0" Grid.Row="1" Text="{x:Static lang:Distribution.ulam_rotate}" Margin="0,0,10,0" />
     50            <Slider Grid.Column="1" Grid.Row="1" Name="silderRotate" Minimum="0" Maximum="360" Value="0" ValueChanged="silderRotate_ValueChanged" />
     51            <TextBlock Grid.Column="2" Grid.Row="1" Text="0.00°" Name="lblRotation" TextAlignment="Right" />
     52        </Grid>
    4453
    4554    </Grid>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/PrimesDistribution/Spirals/UlamSpiral.xaml.cs

    r8109 r8613  
    236236        private void silderRotate_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
    237237        {
    238             lblRotation.Text = e.NewValue.ToString("N") + "°";
     238            lblRotation.Text = $"{e.NewValue:N2}°";
    239239        }
    240240    }
Note: See TracChangeset for help on using the changeset viewer.