Changeset 765


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

Location:
trunk/CrypPlugins/BooleanOperators
Files:
2 edited

Legend:

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

    r763 r765  
    33    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    44    Height="70" Width="70">
    5     <Button Name="myButton" Content="False" Height="50" Width="50" Click="ExecuteThisMethodWhenButtonIsClicked">
     5    <Button Name="myButton" Content="False" Background="Tomato"  Height="50" Width="50" Click="ExecuteThisMethodWhenButtonIsClicked">
    66       
    77    </Button>
  • 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.