public EventTriggerUserControl(EventUserControl parent, TriggerBase trigger, bool highestPriority, bool lowestPriority) { _trigger = trigger; _parent = parent; InitializeComponent(); TriggerType = EnumLocalizer.GetLocalizedEnum(trigger.GetTriggerType()); Description = trigger.GetDescription(); EffectName = trigger.GetEffectName(); Brightness = trigger.GetBrightness().ToString(); Priority = trigger.Priority; if (highestPriority) { PriorityUpButton.Visibility = System.Windows.Visibility.Hidden; } if (lowestPriority) { PriorityDownButton.Visibility = System.Windows.Visibility.Hidden; } DataContext = this; }
public EventTriggerUserControl(EventUserControl parent, TriggerBase trigger) { _trigger = trigger; _parent = parent; InitializeComponent(); TriggerType = EnumLocalizer.GetLocalizedEnum(trigger.GetTriggerType()); Description = trigger.GetDescription(); EffectName = trigger.GetEffectName(); Brightness = trigger.GetBrightness().ToString(); DataContext = this; }