private void DataGridValues_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { try { if (_dataGridValues.SelectedItems.Count == 1) { _dcsbiosControl = (DCSBIOSControl)_dataGridValues.SelectedItem; _dcsBiosInput = new DCSBIOSInput(); _dcsBiosInput.Consume(_dcsbiosControl); _dcsBiosInput.SetSelectedInputBasedOnInterfaceType(GetChosenInterfaceType()); PopulateComboBoxInterfaceType(_dcsBiosInput); //TextBoxInputTypeDescription.Text = _dcsBiosInput.GetDescriptionForInterface(GetChosenInterfaceType()); //TextBoxMaxValue.Text = _dcsBiosInput.GetMaxValueForInterface(GetChosenInterfaceType()).ToString(); ShowValues2(); } SetFormState(); } catch (Exception ex) { Common.ShowErrorMessageBox(1007, ex); } }
private void DataGridValues_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) { try { if (_dataGridValues.SelectedItems.Count == 1) { _dcsbiosControl = (DCSBIOSControl)_dataGridValues.SelectedItem; _dcsBiosInput = new DCSBIOSInput(); _dcsBiosInput.Consume(_dcsbiosControl); _dcsBiosInput.SetSelectedInputBasedOnInterfaceType(GetChosenInterfaceType()); PopulateComboBoxInterfaceType(_dcsBiosInput); //TextBoxInputTypeDescription.Text = _dcsBiosInput.GetDescriptionForInterface(GetChosenInterfaceType()); //TextBoxMaxValue.Text = _dcsBiosInput.GetMaxValueForInterface(GetChosenInterfaceType()).ToString(); ShowValues2(); SetFormState(); } _popupSearch.IsOpen = false; SetFormState(); } catch (Exception ex) { Common.ShowErrorMessageBox(ex); } }