Пример #1
0
        public TimeTriggerUserControl(DayUserControl parent, TimeTrigger trigger)
        {
            _trigger = trigger;
            _parent  = parent;

            InitializeComponent();

            Description = $"{EnumLocalizer.GetLocalizedEnum(trigger.GetTriggerType())}: {trigger.GetDescription()}";
            EffectName  = trigger.Effect;
            Brightness  = trigger.Brightness.ToString();

            DataContext = this;
        }