diff --git a/SmartAquaViewer/Controls/FFPlayerControl.xaml b/SmartAquaViewer/Controls/FFPlayerControl.xaml index ea2f968..c82e901 100644 --- a/SmartAquaViewer/Controls/FFPlayerControl.xaml +++ b/SmartAquaViewer/Controls/FFPlayerControl.xaml @@ -6,13 +6,13 @@ xmlns:local="clr-namespace:SmartAquaViewer.Controls" mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800"> - + - + diff --git a/SmartAquaViewer/MainWindow.xaml b/SmartAquaViewer/MainWindow.xaml index 69256c3..a2ee1f9 100644 --- a/SmartAquaViewer/MainWindow.xaml +++ b/SmartAquaViewer/MainWindow.xaml @@ -93,9 +93,8 @@ CommandParameter="{Binding Tag, RelativeSource={RelativeSource Self}}"/> - - - + + diff --git a/SmartAquaViewer/Model/CCTVInfo.cs b/SmartAquaViewer/Model/CCTVInfo.cs index 11fd0ef..4eaf1c0 100644 --- a/SmartAquaViewer/Model/CCTVInfo.cs +++ b/SmartAquaViewer/Model/CCTVInfo.cs @@ -1,16 +1,35 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; +using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace SmartAquaViewer.Model { - public class CCTVInfo + public class CCTVInfo : INotifyPropertyChanged { public string? DeviceId { get; set; } public string? DeviceName { get; set; } public string? RtspUrl { get; set; } - public string? Status { get; set; } + + private CCTVStatus? _status; + public CCTVStatus? Status + { + get => _status; + set + { + if (_status != value) + { + _status = value; + OnPropertyChanged(); + } + } + } + + public event PropertyChangedEventHandler? PropertyChanged; + private void OnPropertyChanged([CallerMemberName] string? name = null) + => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name)); } } diff --git a/SmartAquaViewer/Model/Enums.cs b/SmartAquaViewer/Model/Enums.cs index 4f6b500..377c66f 100644 --- a/SmartAquaViewer/Model/Enums.cs +++ b/SmartAquaViewer/Model/Enums.cs @@ -25,6 +25,7 @@ namespace SmartAquaViewer.Model public enum StepFieldKind { + Time, Status, // 전원/상태 Sensor, // 센서 값 Energy, // 에너지 소비량 @@ -42,4 +43,10 @@ namespace SmartAquaViewer.Model Energy, GreenhouseGas } + + public enum CCTVStatus + { + Disconnected, + Connected + } } diff --git a/SmartAquaViewer/Resources/Generic.xaml b/SmartAquaViewer/Resources/Generic.xaml index 6ecf346..983ddba 100644 --- a/SmartAquaViewer/Resources/Generic.xaml +++ b/SmartAquaViewer/Resources/Generic.xaml @@ -177,4 +177,30 @@ + + + + \ No newline at end of file diff --git a/SmartAquaViewer/Resources/Images/arrow_left.png b/SmartAquaViewer/Resources/Images/arrow_left.png new file mode 100644 index 0000000..8922cce Binary files /dev/null and b/SmartAquaViewer/Resources/Images/arrow_left.png differ diff --git a/SmartAquaViewer/Resources/Images/arrow_right.png b/SmartAquaViewer/Resources/Images/arrow_right.png new file mode 100644 index 0000000..e3a81c2 Binary files /dev/null and b/SmartAquaViewer/Resources/Images/arrow_right.png differ diff --git a/SmartAquaViewer/SmartAquaViewer.csproj b/SmartAquaViewer/SmartAquaViewer.csproj index 6fbd482..8756b8e 100644 --- a/SmartAquaViewer/SmartAquaViewer.csproj +++ b/SmartAquaViewer/SmartAquaViewer.csproj @@ -21,6 +21,8 @@ + + @@ -70,6 +72,12 @@ + + PreserveNewest + + + PreserveNewest + diff --git a/SmartAquaViewer/View/CCTVView.xaml b/SmartAquaViewer/View/CCTVView.xaml index d22bc3a..90e9035 100644 --- a/SmartAquaViewer/View/CCTVView.xaml +++ b/SmartAquaViewer/View/CCTVView.xaml @@ -6,20 +6,129 @@ xmlns:local="clr-namespace:SmartAquaViewer.View" xmlns:classes="clr-namespace:SmartAquaViewer.Classes" xmlns:controls="clr-namespace:SmartAquaViewer.Controls" + xmlns:helper="clr-namespace:SmartAquaViewer.Helper" + xmlns:model="clr-namespace:SmartAquaViewer.Model" + xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes" mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800"> - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SmartAquaViewer/View/EnegyView.xaml b/SmartAquaViewer/View/EnegyView.xaml index 41456dd..7970bbe 100644 --- a/SmartAquaViewer/View/EnegyView.xaml +++ b/SmartAquaViewer/View/EnegyView.xaml @@ -13,356 +13,358 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - + + + + + + + + + + - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - + + + + - - - + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - -