Files
HECO2/DL_Air Planner 사양/AirPlanner/ControlView.xaml.cs
T
jeon a502322188 chore: HERV 통합 저장소 재초기화 커밋
손상된 .git 히스토리(missing tree)로 재초기화 후 작업트리 전체 커밋.
.claude/ 만 제외(로컬 에이전트 설정). 구 저장소 백업(.git_corrupt_backup/) 포함.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 09:32:17 +09:00

35 lines
1.0 KiB
C#

using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace AirPlanner
{
public partial class ControlView : UserControl
{
static readonly Brush Off = (Brush)new BrushConverter().ConvertFromString("#A6ABB6")!;
static readonly Brush On = (Brush)new BrushConverter().ConvertFromString("#161616")!;
public ControlView()
{
InitializeComponent();
ShowZone("전체", zAll);
}
void Zone_Click(object sender, RoutedEventArgs e)
{
if (sender is Button b && b.Tag is string zone) ShowZone(zone, b);
}
void ShowZone(string zone, Button active)
{
ZoneContent.Content = zone == "전체" ? new VentAllView() : new RoomDetailView(zone);
foreach (var b in new[] { zAll, zLiving, zR1, zR2, zR3 })
{
bool on = b == active;
b.Foreground = on ? On : Off;
b.FontWeight = on ? FontWeights.Bold : FontWeights.Normal;
}
}
}
}