using System.Windows.Controls; using System.Windows.Media; namespace AirPlanner { public partial class VentAllView : UserControl { public VentAllView() { InitializeComponent(); Loaded += (_, _) => { cLiving.Set("거실", "좋음", Aq("AqGood"), "좋음", "좋음", "좋음", "좋음", "Standby", true); cR1.Set("침실1", "좋음", Aq("AqGood"), "좋음", "좋음", "좋음", "좋음", "Standby", true); cR2.Set("침실2", "보통", Aq("AqNormal"), "좋음", "좋음", "보통", "보통", "ON", true); cR3.Set("침실3", "나쁨", Aq("AqBad"), "좋음", "좋음", "보통", "나쁨", "ON", true); }; } Brush Aq(string key) => (Brush)FindResource(key); } }