コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }