Ignore:
Timestamp:
Nov 18, 2008, 7:39:08 PM (13 years ago)
Author:
Timo Eckhardt
Message:
 
Location:
trunk/CrypPlugins/Primes/Primes
Files:
7 edited

Legend:

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

    r4 r23  
    350350       
    351351        /// <summary>
     352        ///   Looks up a localized string similar to Sieb des Atkin.
     353        /// </summary>
     354        public static string test_soa {
     355            get {
     356                return ResourceManager.GetString("test_soa", resourceCulture);
     357            }
     358        }
     359       
     360        /// <summary>
    352361        ///   Looks up a localized string similar to Sieb des Eratosthenes.
    353362        /// </summary>
  • trunk/CrypPlugins/Primes/Primes/Resources/lang/WpfControls/Primetest/Primetest.resx

    r4 r23  
    214214    <value>Der Miller/Rabin-Test</value>
    215215  </data>
     216  <data name="test_soa" xml:space="preserve">
     217    <value>Sieb des Atkin</value>
     218  </data>
    216219  <data name="test_soe" xml:space="preserve">
    217220    <value>Sieb des Eratosthenes</value>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/Primegeneration/SieveOfAtkin/SieveOfAtkinControl.xaml.cs

    r4 r23  
    219219using LibGmpWrapper;
    220220using Primes.WpfControls.Components;
     221using Primes.WpfControls.Primetest;
    221222
    222223namespace Primes.WpfControls.Primegeneration.SieveOfAtkin
     
    225226  /// Interaction logic for SieveOfAtkinControl.xaml
    226227  /// </summary>
    227   public partial class SieveOfAtkinControl : UserControl, IPrimeMethodDivision
     228  public partial class SieveOfAtkinControl : UserControl, IPrimeTest
    228229  {
    229230    public SieveOfAtkinControl()
     
    283284
    284285    #endregion
     286
     287    #region IPrimeTest Members
     288
     289    public IValidator<GmpBigInteger> Validator
     290    {
     291      get { return new BigIntegerMinValueMaxValueValidator(null, GmpBigInteger.Seven, GmpBigInteger.ValueOf(10000)); }
     292    }
     293
     294    #endregion
     295
     296    #region IPrimeVisualization Members
     297
     298    public event Primes.Library.VoidDelegate Start;
     299
     300    public event Primes.Library.VoidDelegate Stop;
     301
     302    public event Primes.Library.VoidDelegate Cancel;
     303
     304    public event Primes.Library.CallbackDelegateGetInteger ForceGetInteger;
     305
     306    public event Primes.Library.CallbackDelegateGetInteger ForceGetIntegerInterval;
     307
     308    public void Execute(GmpBigInteger value)
     309    {
     310     
     311    }
     312
     313    public void CancelExecute()
     314    {
     315     
     316    }
     317
     318    public void Execute(GmpBigInteger from, GmpBigInteger to)
     319    {
     320     
     321    }
     322
     323    #endregion
    285324  }
    286325}
  • trunk/CrypPlugins/Primes/Primes/WpfControls/Primetest/PrimetestControl.xaml

    r4 r23  
    66             xmlns:millerrabin="clr-namespace:Primes.WpfControls.Primetest.MillerRabin"
    77             xmlns:fermat="clr-namespace:Primes.WpfControls.Primetest.TestOfFermat"
     8             xmlns:soa="clr-namespace:Primes.WpfControls.Primegeneration.SieveOfAtkin"
    89             xmlns:comps="clr-namespace:Primes.WpfControls.Components"
    910             xmlns:lang="clr-namespace:Primes.Resources.lang.WpfControls.Primetest"
     
    5354        <millerrabin:MillerRabinControl x:Name="millerrabin"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
    5455      </comps:HelpTabItem>
    55     </TabControl>
     56        <comps:HelpTabItem Header="{x:Static lang:Primetest.test_soa}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="tabItemSoa" HelpButtonClick="TabItem_HelpButtonClick" >
     57          <soa:SieveOfAtkinControl x:Name="soa"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
     58        </comps:HelpTabItem>
     59      </TabControl>
    5660
    5761
  • trunk/CrypPlugins/Primes/Primes/WpfControls/Primetest/PrimetestControl.xaml.cs

    r4 r23  
    1 /*                              Apache License
     1
     2/*                              Apache License
    23                           Version 2.0, January 2004
    34                        http://www.apache.org/licenses/
  • trunk/CrypPlugins/Primes/Primes/WpfVisualization/Navigation/Navigation.xaml

    r4 r23  
    3737          <x:Static Member="lang:Navigation.qs"></x:Static>
    3838          </Hyperlink>
     39
    3940      </TreeViewItem>
    4041      <TreeViewItem Header="{x:Static lang:Navigation.primetest}" IsExpanded="True" Expanded="TreeViewItem_Expanded" Collapsed="TreeViewItem_Expanded">
     
    4445        <Hyperlink Name="lnkTestMillerRabin" Click="lnk_Click">
    4546          <x:Static Member="lang:Navigation.millerrabin"></x:Static></Hyperlink>
     47        <Hyperlink Name="lnkSieveOfAtkin" Click="lnk_Click">
     48          <x:Static Member="lang:Navigation.sieveofatkin"></x:Static>
     49
     50        </Hyperlink>
     51
    4652      </TreeViewItem>
    4753      <Hyperlink Name="lnkGenPrimes" Click="lnk_Click">
    4854        <x:Static Member="lang:Navigation.genprimes"></x:Static>
    4955        </Hyperlink>
    50       <Hyperlink Name="lnkSieveOfAtkin" Click="lnk_Click">
    51         <x:Static Member="lang:Navigation.sieveofatkin"></x:Static>
    52        
    53       </Hyperlink>
    5456
    5557      <TreeViewItem Header="{x:Static lang:Navigation.distribution}" IsExpanded="True" Expanded="TreeViewItem_Expanded" Collapsed="TreeViewItem_Expanded">
  • trunk/CrypPlugins/Primes/Primes/WpfVisualization/PrimesControl.xaml.cs

    r4 r23  
    361361        case NavigationCommandType.SieveOfAtkin:
    362362          if (m_SieveOfAtkinControl == null) m_SieveOfAtkinControl = new SieveOfAtkinControl();
    363           SetUserControl(m_SieveOfAtkinControl);
     363          SetUserControl(m_PrimetestControl,2);
    364364          break;
    365365
Note: See TracChangeset for help on using the changeset viewer.