R
R.A.F.
Hi,
I'm still having my issue with my collection.
I remind you the facts :
- I have a class called "Row".
- I have a collectionbase class named "RowsCollection"
- I have a collectionEditor class called "RowsCollectionEditor".
When i add a new row into the collection class, my new row should have
its property Height, setup to default value = 20. This default value for
row height is written as private static readonly into my RowsCollection
class.
I know that Row constructor should allow such parameter like :
public Row(RowsCollection owner, int iHeight)
{
...
this.Height = iHeight
...
}
But my problem is that i do not understand from where should i call this
constructor.
1. Should i call it from RowsCollection method ? if yes, from which one
and how ?
2. Should i call it from RowsCollectionEditor method ? if yes, from
which one and how ?
i tried to find something about createnewinstance from
RowsCOllectionEditor or Add method (overriden) from RowsCollection but
nothing works...
So i'm confused. :-(
Any help would be wonderfull,
thx,
RAF
I'm still having my issue with my collection.
I remind you the facts :
- I have a class called "Row".
- I have a collectionbase class named "RowsCollection"
- I have a collectionEditor class called "RowsCollectionEditor".
When i add a new row into the collection class, my new row should have
its property Height, setup to default value = 20. This default value for
row height is written as private static readonly into my RowsCollection
class.
I know that Row constructor should allow such parameter like :
public Row(RowsCollection owner, int iHeight)
{
...
this.Height = iHeight
...
}
But my problem is that i do not understand from where should i call this
constructor.
1. Should i call it from RowsCollection method ? if yes, from which one
and how ?
2. Should i call it from RowsCollectionEditor method ? if yes, from
which one and how ?
i tried to find something about createnewinstance from
RowsCOllectionEditor or Add method (overriden) from RowsCollection but
nothing works...
So i'm confused. :-(
Any help would be wonderfull,
thx,
RAF