I want to make a library in .dll so it can be reused. The user who uses the library should be able to say what is the number of colors to track, and I've put this data in varaible 'num' which has to be static if I want to use it the way I want.
static int num = 2;
TrackColorRange[] trackingColorRanges = new TrackColorRange[num]; ...
PictureBox[] ShowPointLocations = new PictureBox[num];
Now it's not the problem if the user uses the code directly, but if I put it in a .dll the user can't change the value of num. What would be the solution for this problem? Thank you.