Esempio n. 1
0
 private ImageSource ChangeImageSource(OnOrNot onOrNor)
 {
     return((onOrNor == OnOrNot.OnCurrentFloor) ?
            new BitmapImage(new Uri(floorOnPath, UriKind.Relative))
         : new BitmapImage(new Uri(floorOffPath, UriKind.Relative)));
 }
 private ImageSource ChangeImageSource(OnOrNot onOrNor) {
     return (onOrNor == OnOrNot.OnCurrentFloor) ?
         new BitmapImage(new Uri(floorOnPath, UriKind.Relative))
         : new BitmapImage(new Uri(floorOffPath, UriKind.Relative));
 }