private void TabPageSelected(object sender, TabControlEventArgs e) { ListBox listbox = GetActiveList(); if (listbox == null) return; var propcontext = new CustomPropertyEditingContext(listbox.SelectedItem); m_propertyGrid.Bind(propcontext); }
private void ListBoxSelectedIndexChanged(object sender, EventArgs e) { ListBox listbox = GetActiveList(); if (sender != listbox) return; var propcontext = new CustomPropertyEditingContext(listbox.SelectedItem); m_propertyGrid.Bind(propcontext); }