//method ------------------------------------------- public void GetDescForm(string category, string subCategory) { /* * call that methode if the XML does not contains the description */ foreach (DescForm form in allForms) { if (form.GetSubCategory() == subCategory) { form.BringToFront(); return; } } DescForm newForm = new DescForm(); FillForm(newForm, category, subCategory); newForm.LoadImagesFlowLayoutPanel(FindImagePath(subCategory)); allForms.Add(newForm); newForm.Show(); }
public void GetDescForm(string subCategory) { /* * if the description exsist */ //TODO: bild laden einbauen foreach (DescForm form in allForms) { if (form.GetSubCategory() == subCategory) { form.BringToFront(); return; } } DescForm newForm = new DescForm(); FillFormWithXML(newForm, subCategory); newForm.LoadImagesFlowLayoutPanel(FindImagePath(subCategory)); allForms.Add(newForm); newForm.Show(); }