comparison MetroWpf/Stocks.UI/Converters/BoolToServiceRunningTextConverter.cs @ 20:6109bc268b90

Latest
author adminsh@apollo
date Tue, 20 Mar 2012 13:37:46 +0000
parents
children
comparison
equal deleted inserted replaced
19:09d18d6e5f40 20:6109bc268b90
1 using System;
2 using System.Windows.Data;
3
4 namespace Stocks.UI.Converters
5 {
6 public class BoolToServiceRunningTextConverter : IValueConverter
7 {
8 #region IValueConverter Members
9
10 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
11 {
12 return (bool) value ? "Service Running" : "Service Stopped";
13 }
14
15 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
16 {
17 throw new NotImplementedException();
18 }
19
20 #endregion
21 }
22 }