private void connectBtn_Click(object sender, EventArgs e) { //if (aCallback != null) aCallback(getResult()); if (outputText.Text.Length == 0) { FolderBrowserDialog path = new FolderBrowserDialog(); path.ShowDialog(); outputText.Text = path.SelectedPath; } if (outputText.Text.Length == 0) { MessageBox.Show("尚未選擇輸出路徑!"); return; } ArrayList list = getResult(); if (list.Count == 0) { MessageBox.Show("尚未選擇Device!"); return; } int index = 0; foreach (BluetoothDeviceManager manager in list) { TesterForm testForm = new TesterForm(manager, outputText.Text, index); testForm.Show(); testForm.Location = new Point(0, index * 256); index++; } }
private void connectBtn_Click(object sender, EventArgs e) { //if (aCallback != null) aCallback(getResult()); if (outputText.Text.Length == 0) { FolderBrowserDialog path = new FolderBrowserDialog(); path.ShowDialog(); outputText.Text = path.SelectedPath; } if (outputText.Text.Length == 0) { MessageBox.Show("尚未選擇輸出路徑!"); return; } ArrayList list = getResult(); if (list.Count == 0) { MessageBox.Show("尚未選擇Device!"); return; } int index = 0; foreach (BluetoothDeviceManager manager in list) { TesterForm testForm = new TesterForm(manager, outputText.Text, index); testForm.Show(); testForm.Location = new Point( 0 ,index * 256); index++; } }