DreamineVMS 1.0.0.0
Windows PC의 RTSP·USB 카메라 영상을 HLS로 변환해 원격 CCTV Viewer에 전달하는 데스크톱 에이전트입니다.
로딩중...
검색중...
일치하는것 없음
AgentStatusConverters.cs
이 파일의 문서화 페이지로 가기
1using System.Globalization;
2using System.Windows.Data;
3using System.Windows.Media;
4
6
15public sealed class BoolToBrushConverter : IValueConverter
16{
25 public static readonly BoolToBrushConverter Instance = new();
26
75 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
76 => value is true ? Brushes.ForestGreen : Brushes.Gray;
77
134 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
135 => throw new NotSupportedException();
136}
137
146public sealed class BoolToStatusTextConverter : IValueConverter
147{
156 public static readonly BoolToStatusTextConverter Instance = new();
157
206 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
207 => value is true ? "● 연결됨" : "○ 미연결";
208
265 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
266 => throw new NotSupportedException();
267}
object Convert(object value, Type targetType, object parameter, CultureInfo culture)
static readonly BoolToBrushConverter Instance
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
static readonly BoolToStatusTextConverter Instance
object Convert(object value, Type targetType, object parameter, CultureInfo culture)