Files
HECO2/DL_Air Planner 사양/AirPlanner/MainWindow.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

38 lines
1.2 KiB
C#

using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace AirPlanner
{
public partial class MainWindow : Window
{
static readonly Brush NavOff = (Brush)new BrushConverter().ConvertFromString("#7B8090")!;
static readonly Brush NavOn = Brushes.White;
public MainWindow()
{
InitializeComponent();
Show("home");
}
void Show(string view)
{
if (view == "control") { MainContent.Content = new ControlView(); SetActive(navCtrl); }
else { MainContent.Content = new HomeView(); SetActive(navHome); }
}
void SetActive(Button active)
{
foreach (var b in new[] { navHome, navCall, navCtrl, navView, navSet })
{
b.Foreground = b == active ? NavOn : NavOff;
b.FontWeight = b == active ? FontWeights.Bold : FontWeights.Normal;
}
}
void Nav_Home(object sender, RoutedEventArgs e) => Show("home");
void Nav_Control(object sender, RoutedEventArgs e) => Show("control");
void Nav_Todo(object sender, RoutedEventArgs e) { /* 통화/조회/설정/알림/비상 — 추후 구현 */ }
}
}