Changeset 1869


Ignore:
Timestamp:
Aug 24, 2010, 10:09:58 PM (11 years ago)
Author:
malischewski
Message:

Entropy switch visibility bug fix

Location:
trunk/CrypPlugins/CostFunction
Files:
2 edited

Legend:

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

    r1868 r1869  
    102102        }
    103103        #endregion
    104 
     104        /* obsolete
    105105        [PropertyInfo(Direction.OutputData, "Text Output", "Your Text will be send here", "", DisplayLevel.Beginner)]
    106106        public byte[] OutputText
     
    116116            }
    117117        }
    118 
     118        */
    119119        [PropertyInfo(Direction.OutputData, "Value", "The value of the function will be send here", "", DisplayLevel.Beginner)]
    120120        public double Value
     
    242242                }//end switch               
    243243
    244                 this.OutputText = this.InputText;
     244               
    245245                ProgressChanged(1, 1);
    246246
  • trunk/CrypPlugins/CostFunction/CostFunctionSettings.cs

    r1868 r1869  
    202202            if (functionType.Equals(1))
    203203            {
    204                 TaskPaneAttributeChanged(this, new TaskPaneAttributeChangedEventArgs(new TaskPaneAttribteContainer("entropyselect", Visibility.Visible)));
    205             }
    206             else
    207             {
    208                 TaskPaneAttributeChanged(this, new TaskPaneAttributeChangedEventArgs(new TaskPaneAttribteContainer("entropyselect", Visibility.Collapsed)));
     204                TaskPaneAttributeChanged(this, new TaskPaneAttributeChangedEventArgs(new TaskPaneAttribteContainer("entropy", Visibility.Visible)));
     205            }
     206            else
     207            {
     208                TaskPaneAttributeChanged(this, new TaskPaneAttributeChangedEventArgs(new TaskPaneAttribteContainer("entropy", Visibility.Collapsed)));
    209209            }
    210210        }
Note: See TracChangeset for help on using the changeset viewer.