Hi everyone,
I've a List that return havaIcons and I'm adding xml data to list because;
List add last data everytime.
My first data is lost from list
I used add Method but not work and used insert method with index parameter not work again
List<havaIcons> havaIconsClasses = new List<havaIcons>();
havaIcons havaIconsClass = new havaIcons();
for (int i = 0; i < xmlHavaIcons.GetElementsByTagName("data").Item(0).ChildNodes.Count; i++)
{
havaIconsClass.VirtualIconType = xmlHavaIcons.GetElementsByTagName("data").Item(0).ChildNodes.Item(i).Attributes["label"].Value;
havaIconsClass.RealIcon = xmlHavaIcons.GetElementsByTagName("data").Item(0).ChildNodes.Item(i).Attributes["data"].Value;
havaIconsClasses.Insert(i,havaIconsClass);
}
please HELP ME!