Files
HECO2/DL_Air Planner 사양/AirPlanner/RoomDetailView.xaml.cs
T
jeon 5a96a696b1 chore: HERV 통합 저장소 초기 커밋
- 펌웨어(program), C# 대시보드(TestProgram), 시뮬레이터(Simulator),
  프로토콜/문서(Protocol, doc) 전체를 단일 저장소로 통합
- program 폴더의 별도 git 저장소를 제거하고 통합 저장소에 흡수
- 빌드 산출물(program/build, bin/obj, *.o/.elf/.bin/.hex 등) .gitignore 처리
- 사내 Synology NAS Git 원격 연결 예정

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 21:44:23 +09:00

35 lines
1.4 KiB
C#

using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
namespace AirPlanner
{
public partial class RoomDetailView : UserControl
{
// 거실 : 표시램프만
// 침실1 : 안심회복 + 표시램프 + 제습기 연동 (안심회복은 침실1 전용)
// 침실2·침실3 : 표시램프 + 제습기 연동
public RoomDetailView(string roomName)
{
InitializeComponent();
bool isBedroom = roomName != "거실";
if (roomName == "침실1") TogglePanel.Children.Add(MakeRow("안심회복", false));
TogglePanel.Children.Add(MakeRow("표시램프", true));
if (isBedroom) TogglePanel.Children.Add(MakeRow("제습기 연동", false));
}
FrameworkElement MakeRow(string label, bool on)
{
var sp = new StackPanel { Orientation = Orientation.Horizontal, Margin = new Thickness(0, 0, 0, 12) };
sp.Children.Add(new TextBlock
{
Text = label, FontSize = 18, VerticalAlignment = VerticalAlignment.Center,
Foreground = (Brush)FindResource("Ink"), Margin = new Thickness(0, 0, 12, 0), MinWidth = 86
});
sp.Children.Add(new ToggleButton { Style = (Style)FindResource("Toggle"), IsChecked = on });
return sp;
}
}
}