Home > Net >  The WPF pictures
The WPF pictures

Time:05-18

Private void imgLamp2_MouseUp (object sender, MouseButtonEventArgs e)
{
If (isOpen)
{
ImgLamp2. Source=new BitmapImage (new Uri (" images/LampOff. PNG, "UriKind. Relative));
IsOpen=false;
}
The else
{
ImgLamp2. Source=new BitmapImage (new Uri (" images/LampOn. PNG, "UriKind. Relative));
IsOpen=true;
}
}
This is a program that if in WPF (isopen) isopen have what use?
ImgLamp2. Source=new BitmapImage (new Uri (" images/LampOn. PNG, "UriKind. Relative));
And bosses can explain this one-liner each paragraph mean? Thank you very much!
  •  Tags:  
  • C#
  • Related