private void cbListElements_SelectedIndexChanged(object sender, EventArgs e) { // Update as needed to surface info Url = ((ListTypeInfo)cbListElements.SelectedItem).Url; ListElementsSelectionChanged temp = Interlocked.CompareExchange(ref ListElementsSelectionChanged_Event, null, null); if (temp != null) { temp(); } }
private void cbComboBox_SelectedIndexChanged(object sender, EventArgs e) { //((instanceInfo)cbInstance.SelectedItem).FullName; //string a = cbInstance.SelectedValue.ToString(); //string b = cbInstance.SelectedText.ToString(); //string c = cbInstance.Text; ShapeName = ((ListTypeInfo)cbComboBox.SelectedItem).ShapeName; StateName = ((ListTypeInfo)cbComboBox.SelectedItem).StateName; TextLine2 = ((ListTypeInfo)cbComboBox.SelectedItem).TextLine2; ForeColor = ((ListTypeInfo)cbComboBox.SelectedItem).ForeColor; ListElementsSelectionChanged temp = Interlocked.CompareExchange(ref ListElementsSelectionChanged_Event, null, null); if (temp != null) { temp(); } }