private void DevicesListView1_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
        {
            //algorithmSettingsControl1.Deselect();
            // show algorithms
            var selectedComputeDevice =
                AvailableDevices.GetCurrentlySelectedComputeDevice(e.ItemIndex, true);

            algorithmsListView1.SetAlgorithms(selectedComputeDevice, selectedComputeDevice.Enabled);
        }
 private void DevicesListView1_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
 {
     algorithmSettingsControl1.Deselect();
     // show algorithms
     _selectedComputeDevice =
         AvailableDevices.GetCurrentlySelectedComputeDevice(e.ItemIndex, ShowUniqueDeviceList);
     algorithmsListView1.SetAlgorithms(_selectedComputeDevice, _selectedComputeDevice.Enabled);
     groupBoxAlgorithmSettings.Text = string.Format(Tr("Algorithm settings for {0} :"),
                                                    _selectedComputeDevice.Name);
     minDeviceProfitField.Enabled   = true;
     minDeviceProfitField.EntryText = _selectedComputeDevice.MinimumProfit.ToString("F2").Replace(',', '.');
 }