示例#1
0
        public SetupForm(DirectXJoystickData data)
        {
            InitializeComponent();

            _data = data;

            comboBoxJoystick.DisplayMember = "DeviceName";
            comboBoxJoystick.ValueMember = "DeviceId";
            comboBoxJoystick.DataSource = Joystick.AllJoysticks();

            if(_data.DeviceId != Guid.Empty) {
                comboBoxJoystick.SelectedValue = _data.DeviceId;
            }
        }
示例#2
0
        public SetupForm(DirectXJoystickData data)
        {
            InitializeComponent();

            _data = data;

            comboBoxJoystick.DisplayMember = "DeviceName";
            comboBoxJoystick.ValueMember   = "DeviceId";
            comboBoxJoystick.DataSource    = Joystick.AllJoysticks();

            if (_data.DeviceId != Guid.Empty)
            {
                comboBoxJoystick.SelectedValue = _data.DeviceId;
            }
        }