Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public Item(int count, SegmentsCollection segments, int totalLength)
 {
     this.Count       = count;
     this.Segments    = segments;
     this.TotalLength = totalLength;
 }
Esempio n. 3
0
 public SegmentsCollectionPropertyDescriptor(SegmentsCollection coll,
                                             int idx) : base("#" + idx.ToString(), null)
 {
     this.collection = coll;
     this.index      = idx;
 }