So I have to initiate an object from a class into the main form, but the arguments I have to put in the constructor are from an enum type I made in that class.
private List<Geluidsfragment> fragmenten;
private enum ThemaSoorten
{
Muziek,
Luisterboeken,
Cabaretshows
}
^this part is now outside the class, as was advised.
// Constrcutors
public BGExperience(ThemaSoorten thema)
{
fragmenten = new List<Geluidsfragment>();
this.thema = thema;
}
These are the fields and constructor for the field. Below is the initiation of the object of this class I need.
public GeluidsfragmentForm()
{
InitializeComponent();
BGExperience bgExperience = new BGExperience("Muziek");
}
So the overload has to be of the type ThemaSoorten and it has to be in the enum, but at this point it gets stuck.
Anyone know how to solve this?