Exemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DeviceAdd dv = new DeviceAdd();

            this.Hide();
            dv.ShowDialog();
        }
Exemplo n.º 2
0
Arquivo: Form1.cs Projeto: n9ds/HID
        private void DeviceAdd(object sender, EventArgs e)
        {
            var       AttachedDevices = FootPedalMonitor.ListDevices();
            DeviceAdd dlg             = new DeviceAdd(AttachedDevices);
            var       rc = dlg.ShowDialog();

            if (rc == DialogResult.OK)
            {
                var SelectedDevice = dlg.SelectedDevice;
                // TODO: Get the selected device and then show the configure dialog thing.
            }
        }
 private void NotifyDeviceAdded(DeviceInformation deviceInfo)
 {
     DeviceAdd?.Invoke(this, deviceInfo);
 }