Doubt in Parent-Child Classes

Doubt in Parent-Child Classes

Old forum URL: forums.lhotka.net/forums/t/8126.aspx


alagesan posted on Friday, December 11, 2009


hi
i created Classes following style
 Job
       SubJobList
                        JobItemsList
                        JobChargesList
 
now i create all job calculation in Job header(main) class
now i want i access all child class values in jobheader(Main) form will it possible?

i cant able to get current sub joblist Index in Jobheader form?
how to get current index of child list in parent form?


RockfordLhotka replied on Friday, December 11, 2009

Which UI technology are you using?

alagesan replied on Friday, December 11, 2009


hi.,
iam using Windows application and BindingSource control for this

i used Child_Changed event in Main(Parent Form)
the parent class has
         Job(bussiness clas)
                          ---- SubJobList(bussinesslistbase class)
                                                                  ----------JobAddressList
                                                                  ----------jobItemsList
like this

i created all my bussineess calculation in Job class using Child_Changed events
i this event always i want current Subjob Index
but whenever iam changing in subjob then only i can able to get that Current Index
instead of these i want current Index of Subjob always even if they changing Jobitems or jobAddresss list
                       

Copyright (c) Marimer LLC