Example #1
0
        void points_OnAdd(object sender, EventArgs e)
        {
            ListWithChild <Point3D, float>          list   = sender as ListWithChild <Point3D, float>;
            ListWithChildEventArgs <Point3D, float> evargs = e as ListWithChildEventArgs <Point3D, float>;

            if (list == null || evargs == null)
            {
                return;
            }

            evargs.ChildItem = (float)evargs.ParentItem.X;
        }
Example #2
0
 public Tester()
 {
     this.points           = new ListWithChild <Point3D, float>();
     this.points.OnAdd    += points_OnAdd;
     this.points.OnModify += points_OnModify;
 }