Ignore:
Timestamp:
Oct 21, 2009, 8:59:23 PM (12 years ago)
Author:
weyers
Message:

Button at initialize red/false, button changes color on combo box

File:
1 edited

Legend:

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

    r763 r765  
    3333        /// </summary>
    3434        public Boolean Value { get; set; }
     35       
    3536        public void update()
    3637        {
    3738            try
    38             { this.myButton.Content = Value; }
     39            {
     40                this.myButton.Content = Value;
     41                if (Value)
     42                { this.myButton.Background = Brushes.LawnGreen; }
     43                else
     44                { this.myButton.Background = Brushes.Tomato; }
     45            }
    3946            catch { }
    4047        }
Note: See TracChangeset for help on using the changeset viewer.