Ejemplo n.º 1
0
        private async void button4_Click(object sender, EventArgs e)
        {
            string       port_id       = comboBox1.Text;
            E_PortType   mode          = (E_PortType)comboBox2.SelectedIndex;
            DialogResult confirmResult = MessageBox.Show(this, $"Do you want to change port:{port_id} to {mode} mode?",
                                                         App.BCApplication.getMessageString("CONFIRM"), MessageBoxButtons.YesNo);

            if (confirmResult != System.Windows.Forms.DialogResult.Yes)
            {
                return;
            }
            await Task.Run(() => transferService.PortTypeChange(port_id, mode, "測試用 UI"));
        }
Ejemplo n.º 2
0
 private async void button4_Click(object sender, EventArgs e)
 {
     string     port_id = comboBox1.Text;
     E_PortType mode    = (E_PortType)comboBox2.SelectedIndex;
     await Task.Run(() => transferService.PortTypeChange(port_id, mode, "測試用 UI"));
 }
Ejemplo n.º 3
0
 private async void button4_Click(object sender, EventArgs e)
 {
     string     port_id = comboBox1.Text;
     E_PortType mode    = (E_PortType)comboBox2.SelectedIndex;
     await Task.Run(() => BCApp.SCApplication.TransferService.PortTypeChange(port_id, (E_PortType)mode));
 }