Example #1
0
        public Button(int number, int physicalNumber)
        {
            _allowedTypes = new ObservableCollection <ButtonType>();
            _allowedTypes.Add(ButtonType.Button_Normal);

            _sourceType = ButtonSourceType.NoSource;

            _config = new ButtonConfig();
            _config.PhysicalNumber = (sbyte)physicalNumber;
            _config.Type           = ButtonType.Button_Normal;

            Number = number;
        }
Example #2
0
        public Button(int number)
        {
            _allowedTypes = new ObservableCollection <ButtonType>();
            _allowedTypes.Add(ButtonType.Button_Inverted);
            _allowedTypes.Add(ButtonType.Button_Normal);

            _sourceType = ButtonSourceType.NoSource;

            _config = new ButtonConfig();
            _config.PhysicalNumber = 0;
            _config.Type           = ButtonType.Button_Normal;

            _state = false;
            Number = number;
        }