public RadForm1() { InitializeComponent(); SegmentsCollection segments = new SegmentsCollection(); for (int i = 0; i < 5; i++) { segments.Add(new Segment(new Start(i, i + 1, i + 2), new End(i, i * i, i * i + i, i + 3, i + 4, i + 5))); } this.radPropertyGrid1.SelectedObject = new Item(5, segments, 145229); this.radPropertyGrid1.Edited += RadPropertyGrid1_Edited; this.radPropertyGrid1.Editing += RadPropertyGrid1_Editing; this.radPropertyGrid1.EditorInitialized += RadPropertyGrid1_EditorInitialized; }
public Item(int count, SegmentsCollection segments, int totalLength) { this.Count = count; this.Segments = segments; this.TotalLength = totalLength; }
public SegmentsCollectionPropertyDescriptor(SegmentsCollection coll, int idx) : base("#" + idx.ToString(), null) { this.collection = coll; this.index = idx; }