Пример #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)));
 }
Пример #2
0
 private ImageSource ChangeImageSource(OnOrNot onOrNor) {
     return (onOrNor == OnOrNot.OnCurrentFloor) ?
         new BitmapImage(new Uri(floorOnPath, UriKind.Relative))
         : new BitmapImage(new Uri(floorOffPath, UriKind.Relative));
 }