- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
if (e.Source.GetType().Name.ToString()=="Square")
{
if (((Square)e.Source).Background == SystemColors.ControlBrush)
{
if ((((Square)e.Source).Content.Equals("")))
{
((Square)e.Source).Background = Brushes.Blue;
}
}
else
{
if (((Square)e.Source).Background != Brushes.White)
if (((Square)e.Source).Background != Brushes.Red)
if (((Square)e.Source).Background != Brushes.Green)
((Square)e.Source).Background = SystemColors.ControlBrush;
}
}