UI Updates + context menu + popup for tray.
This commit is contained in:
@@ -41,4 +41,20 @@ namespace BodyshopUploader.Utils
|
||||
}
|
||||
}
|
||||
|
||||
public class MonitorStatusConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if ((bool)value == true)
|
||||
return Properties.Resources.Label_Status_Started;
|
||||
else
|
||||
return Properties.Resources.Label_Status_Stopped;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotSupportedException("Two-way binding not supported by MonitorStatusConverter");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user