Ignore:
Timestamp:
Oct 17, 2009, 10:34:26 PM (12 years ago)
Author:
Matthäus Wander
Message:

CrypWin:

  • changed string Beta 01 -> 02
  • TextBoxHidden now loads its value when loading a project file
  • see #98 for an open issue

BigInteger/BigNumber:

  • added sanity checks for == operator and Equals()
  • setting input properties to null in PreExecution (addresses #90)

Tokenizer:

  • added \t as word delimiter (fixes problem with Enigma-Challenge_II)

Enigma:

  • added null reference sanity check

WordPatterns:

  • improved PostBuild events

ExamplePluginCT2:

  • added example plugin which serves as plugin template
  • the template is located in Documentation/Template/
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Collector/Collector.cs

    r589 r740  
    2323using Cryptool.PluginBase.Miscellaneous;
    2424using System.ComponentModel;
     25using System.Runtime.Remoting.Contexts;
    2526
    2627namespace Cryptool.Plugins.Collector
     
    2829    [Author("Sven Rech", "sven.rech@cryptool.com", "Uni Duisburg-Essen", "http://www.uni-due.de")]
    2930    [PluginInfo(false, "Collector", "Collector", "Collector/DetailedDescription/Description.xaml", "Collector/icon.png")]
     31    [Synchronization]
    3032    class Collector : IThroughput
    3133    {
    3234        #region Private Variables
    3335        private CollectorSettings settings = new CollectorSettings();
    34         private List<CryptoolStream> listCryptoolStreamOut = new List<CryptoolStream>();       
     36        private List<CryptoolStream> listCryptoolStreamOut = new List<CryptoolStream>();
     37        private bool freshOutput = false;
    3538        #endregion
    3639
     
    3841
    3942        private Object input1 = null;
    40         [PropertyInfo(Direction.InputData, "First Input", "First input to be collected", "", DisplayLevel.Beginner)]
     43        [PropertyInfo(Direction.InputData, "First Input", "First input to be collected", "", false, true, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
    4144        public Object Input1
    4245        {
     
    4750            set
    4851            {
    49                 input1 = value;               
     52                input1 = value;
     53                freshOutput = true;
    5054                OnPropertyChanged("Input1");
    5155                Output = value;
     
    5458
    5559        private Object input2 = null;
    56         [PropertyInfo(Direction.InputData, "Second Input", "Second input to be collected", "", DisplayLevel.Beginner)]
     60        [PropertyInfo(Direction.InputData, "Second Input", "Second input to be collected", "", false, true, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
    5761        public Object Input2
    5862        {
     
    6367            set
    6468            {
    65                 input2 = value;               
     69                input2 = value;
     70                freshOutput = true;
    6671                OnPropertyChanged("Input2");
    6772                Output = value;
     
    8893                else
    8994                    output = value;
    90 
    91                 OnPropertyChanged("Output");
    9295            }
    9396        }
     
    132135        {
    133136            Dispose();
     137
     138            freshOutput = false;
     139            input1 = null;
     140            input2 = null;
     141            output = null;
    134142        }
    135143
    136144        public void Execute()
    137145        {
    138             ProgressChanged(1, 1);
     146            if (freshOutput)
     147            {
     148                ProgressChanged(1, 1);
     149
     150                OnPropertyChanged("Output");
     151                freshOutput = false;
     152            }
    139153        }
    140154
Note: See TracChangeset for help on using the changeset viewer.