1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
class Mother
{
public Mother()
{
InitializeComponent();
//Mettre à jour les usercontrol que je connais...
m_child1.Initialize(this);
m_child2.Initialize(this);
}
}
class Child1
{
public Child1()
{
InitializeComponent();
}
public Initialize(Mother mother)
{
m_mother = mother;
//Mettre à jour mes propres enfant...
m_child3.Initialize(m_mother);
}
}
class Child2
{
public Child2()
{
InitializeComponent();
}
public Initialize(Mother mother)
{
m_mother = mother;
//Mettre à jour mes propres enfant...
}
}
class Child3
{
public Child3()
{
InitializeComponent();
}
public Initialize(Mother mother)
{
m_mother = mother;
//Mettre à jour mes propres enfant...
}
} |
Partager