Ignore:
Timestamp:
Sep 10, 2009, 12:15:12 PM (12 years ago)
Author:
Sven Rech
Message:

fixed BigNumber
added SDES and BooleanOperators to solution

Location:
trunk/CrypPlugins/BigNumber
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/BigNumber/BigNumberOperation.cs

    r496 r497  
    214214{
    215215    [Author("Sven Rech", "sven.rech@cryptool.org", "Uni Duisburg-Essen", "http://www.uni-due.de")]
    216     [PluginInfo(true, "BigNumberOperation", "Big Number Operation", null, "BigNumber/icons/plusIcon.png", "BigNumber/icons/minusIcon.png", "BigNumber/icons/timesIcon.png", "BigNumber/icons/divIcon.png", "BigNumber/icons/powIcon.png")]
     216    [PluginInfo(false, "BigNumberOperation", "Big Number Operation", null, "BigNumber/icons/plusIcon.png", "BigNumber/icons/minusIcon.png", "BigNumber/icons/timesIcon.png", "BigNumber/icons/divIcon.png", "BigNumber/icons/powIcon.png")]
    217217    class BigNumberOperation : IThroughput
    218218    {
    219219
     220        public BigNumberOperation()
     221        {
     222            this.settings.OnPluginStatusChanged += settings_OnPluginStatusChanged;
     223        }
     224
    220225        #region Properties
    221226
    222227        private BigInteger input1 = null;
    223         [PropertyInfo(Direction.InputData, "Input1", "Number Input 1", "", DisplayLevel.Beginner)]
     228        [PropertyInfo(Direction.InputData, "x Input", "Number Input 1", "", true, false, DisplayLevel.Beginner, QuickWatchFormat.None, null)]
    224229        public BigInteger Input1
    225230        {
     
    236241
    237242        private BigInteger input2 = null;
    238         [PropertyInfo(Direction.InputData, "Input2", "Number Input 2", "", DisplayLevel.Beginner)]
     243        [PropertyInfo(Direction.InputData, "y Input", "Number Input 2", "", true, false, DisplayLevel.Beginner, QuickWatchFormat.None, null)]
    239244        public BigInteger Input2
    240245        {
     
    323328        public void Execute()
    324329        {
    325             if(input1 is object && input2 is object && Mod is object)
     330            if(input1 is object && input2 is object)
    326331            {
    327332               
     
    410415
    411416        #endregion
     417
     418        private void settings_OnPluginStatusChanged(IPlugin sender, StatusEventArgs args)
     419        {
     420            if (OnPluginStatusChanged != null) OnPluginStatusChanged(this, args);
     421        }
    412422    }
    413423}
  • trunk/CrypPlugins/BigNumber/BigNumberOperationSettings.cs

    r495 r497  
    219219        #endregion
    220220        #region taskpane
    221         [TaskPane("Operat", "Choose the operator.", null, 1, false, DisplayLevel.Beginner, ControlType.ComboBox, new string[] { "+","-","*","//","x^y"})]
     221        [TaskPane("Operat", "Choose the operator.", null, 1, false, DisplayLevel.Beginner, ControlType.ComboBox, new string[] { "x+y","x-y","x*y","x/y","x^y"})]
    222222        public int Operat
    223223        {
     
    252252            }
    253253        }
     254
     255        private void ChangePluginIcon(int p)
     256        {
     257            OnPluginStatusChanged(null, new StatusEventArgs(StatusChangedMode.ImageUpdate, p));
     258        }
    254259        #endregion
    255260        #region ISettings Members
     
    274279        }
    275280        public event StatusChangedEventHandler OnPluginStatusChanged;
    276         private void ChangePluginIcon(int Icon)
    277         {
    278             if (OnPluginStatusChanged != null) OnPluginStatusChanged(null, new StatusEventArgs(StatusChangedMode.ImageUpdate, Icon));
    279         }
    280 
    281         public void ChangeIcon(int icon)
    282         {
    283             ChangePluginIcon(icon);
    284         }
    285281
    286282        #endregion
Note: See TracChangeset for help on using the changeset viewer.