private void gridUoTypes_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (gridUoTypes.SelectedIndex < 0) { return; } Powerscript.Type type = ((Powerscript.Type[])gridUoTypes.ItemsSource)[gridUoTypes.SelectedIndex]; gridUoProps.ItemsSource = type.Properties; gridUoEvents.ItemsSource = type.Events; }
public TypeView(Powerscript.Type type, LibEntryView parent) { this.type = type; this.parent = parent; }