Please anybody help me...
I have some serious problem..
I'm doing to keep equpiment list(string)..
In my code, there are 3 page which are having 4 equpiment ID (user
control.)
like this window FORM
================================================== ================
=
= ============= ============= ============= =============
= = equpment ID = = equpment ID = = equpment ID = =
equpment ID =
= = combo box = = combo box = = combo box = =
combo box =
= = (user object) = = (user object) = = (user object)
= = (user object) =
= ============= ============= ============= =============
=
=
=
= PAGE 1 BUTTON PAGE 2 BUTTON PAGE 3 BUTTON
================================================== ==================
every userobject can select equpiment (1000,2000,3000 or 4000)
every page has 4 equpment list, so totally 12 equpment can be display
at once..
1. when combo box click(means equipment change), event is occured
2. FORM window catch event and keep equipment inforamtion at
dictionary<int, list<String>>
(int is page number, string is equipment ID)
3. if page changed, display thier (page) own equipment list
The problem is ... event...
I select 1000, 2000 ," ", " " at page 1
and change page to 2 (all user control clear because page 2 is not
select any equipment)
I select " ", 3000,4000, " " at page 2
I return select page 1
I expected 1000, 2000, " " ," " but.. result is 1000,2000,4000, " "
I do not know whay 4000 is displayed...
So i debug code...
the event was problem
I code like following...
private void comboBox1_SelectedIndexChanged_1(object sender,
EventArgs
e)
{
equipmentID = comboBox1.Text;
equipmentChanged(new object(), new EventArgs());
//equipmentChanged(this, new EventArgs());
}
equipmentChanged is event...
If I comment out equipmentChanged event and calll event by other, the
problem is not happened...
(example I made a button on usercontrol and send event by button
click)
I want to attach the sample code but I don't know how to attach at
this usernet group..
So please down load my c# sample code and please teach me what is
problem...
http://download.yousendit.com/B1F068D56D804070
there is testWindow.zip file at that site..
I tooks 1 day to resolve this problem but I still could not found
reason..
Please.. please.. please...