Changeset 775


Ignore:
Timestamp:
Oct 24, 2009, 1:31:49 PM (12 years ago)
Author:
malischewski
Message:

Edited description, added Progress change

Location:
trunk/CrypPlugins/SubByteArray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/SubByteArray/DetailedDescription/Description.xaml

    r766 r775  
    1414    <Paragraph TextAlignment="Justify">
    1515        <Run FontSize="15" xml:lang="en-us">
    16             With this plugin the User selects contents of a ByteArray (Similar to the SubString Plugin with Strings).
    17             Using the provided Settings or the optional inputs, he or she can enter the desired Start and End Indexes.
     16            With this plugin the user selects contents of a ByteArray (Similar to the SubString Plugin with Strings).
     17            Using the provided Settings or the optional inputs, one can enter the desired Start and End Indexes.
     18        </Run>
     19    </Paragraph>
     20    <Paragraph TextAlignment="Justify">
     21        <Run FontSize="15" xml:lang="en-us">
     22           Indexes start at 0 (as in C#/Java).
    1823        </Run>
    1924    </Paragraph>
    2025
    21 
    2226</FlowDocument>
  • trunk/CrypPlugins/SubByteArray/SubByteArray.cs

    r766 r775  
    3030{
    3131    [Author("Simon Malischewski", "malischewski@cryptool.org", "Uni Duisburg-Essen", "http://wwww.uni-due.de")]
    32     [PluginInfo(false, "SubByteArray", "SubByteArray", "SubByteArray/DetailedDescription/Description.xaml", "SubByteArrayCryptoolStream/icon.png")]
     32    [PluginInfo(false, "SubByteArray", "SubByteArray", "SubByteArray/DetailedDescription/Description.xaml", "SubByteArray/icon.png")]
    3333    public class SubByteArrayCryptoolStream : IThroughput
    3434    {
     
    6666        }
    6767
     68        public event PluginProgressChangedEventHandler OnPluginProcessChanged;
     69
     70        private void ProgressChanged(double value, double max)
     71        {
     72            EventsHelper.ProgressChanged(OnPluginProgressChanged, this, new PluginProgressEventArgs(value, max));
     73        }
    6874
    6975        [PropertyInfo(Direction.InputData, "Input ByteArray", "Input ByteArray", "", true, false, DisplayLevel.Beginner, QuickWatchFormat.Hex, null)]
     
    169175                           
    170176                        }
    171 
     177                        ProgressChanged(1.0, 1.0);
    172178                        OnPropertyChanged("OutputData");
    173179                        settings.GetTaskPaneAttributeChanged();
Note: See TracChangeset for help on using the changeset viewer.