Stupid question I am sure but I have no idea how to do it.
Lets say I have a window (wpf) called wndWindow.
Now I'd like to create a constructor for wndWindow which will accept an argument. Essentially, I want to be able to do something like:
wndWindow tWindow = new wndWindow();
Previously I've just used numbers and I just remembered which number corresponds to what but I'm reusing this window heaps and keep forgetting the numbers as there are about 12 of them.
wndWindow tWindow = new wndWindow(options.thisoption);
So I'd type option. and then intellisense will show the list of options. These options might be Option1, Option2, Option3, Optiona, Optionb.
It's hard to google for something when I don't actually know what this is called, lol.
Thanks, got it all going how I wanted it now :)