private void buttonDetect_Click(object sender, EventArgs e)
        {
            //Always Generic device here
            FitnessDevice_GsSport  device = new FitnessDevice_GsSport();
            DeviceConfigurationDlg d      = new DeviceConfigurationDlg(device, true);

            d.ShowDialog();
            //Retrieve detect information, without query device again
            this.labelDetect.Text = device.Detect(false);
        }
Example #2
0
        public string Configure(string configurationInfo)
        {
            this.configInfo.Parse(configurationInfo);
            DeviceConfigurationDlg dialog = new DeviceConfigurationDlg(this, true);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                return(dialog.ConfigurationInfo.ToString());
            }
            else
            {
                return(null);
            }
        }