public Dictionary <int, int> get_priority_values() { int p = 0; if (comboBox1.SelectedValue != null && int.TryParse(comboBox1.SelectedValue.ToString(), out p)) { return(ENGINEERINGDataSet.get_priority_values_inner(p)); } return(new Dictionary <int, int>()); }
private void apply_changes() { DataRowView comboboxitem = (DataRowView)comboBox1.SelectedItem; ENGINEERINGDataSet.update_priority_values((int)comboboxitem[0], get_listbox_states()); }