示例#1
0
        private void ResetMapping()
        {
            if (selectedDevice == null)
            {
                return;
            }

            DialogResult result = MessageBox.Show(this, "Do you really want to reset the setting to default values?", "Reset mapping", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (result == DialogResult.Yes)
            {
                selectedDevice.SetDefaultMapping();
                TakeOverMapping(selectedDevice.Mapping);
            }
        }