Ignore:
Timestamp:
Dec 10, 2009, 2:32:26 PM (12 years ago)
Author:
Matthäus Wander
Message:

CrypPluginBase:

  • centralized directory pathes to static DirectoryHelper
  • adapted Enigma and QuadraticSieve to use tempdir pathes from DirectoryHelper

BooleanOperators:

  • surrounded broken UI code snippet with Dispatcher call

Gate:

  • removed broken sample
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/BooleanOperators/ButtonInputPresentation.xaml.cs

    r765 r975  
    1212using System.Windows.Navigation;
    1313using System.Windows.Shapes;
     14using System.Windows.Threading;
     15using System.Threading;
    1416
    1517namespace BooleanOperators
     
    3638        public void update()
    3739        {
    38             try
    39             { 
     40            Dispatcher.Invoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
     41            {
    4042                this.myButton.Content = Value;
    4143                if (Value)
     
    4345                else
    4446                { this.myButton.Background = Brushes.Tomato; }
    45             }
    46             catch { }
     47            }, null);
    4748        }
    4849        public void ExecuteThisMethodWhenButtonIsClicked(object sender, EventArgs e)
Note: See TracChangeset for help on using the changeset viewer.