I'm familiar with amateur programming so I know about OOP and stuff (to a certain degree) but I'm not really liking having instances of everything and no global variables (I started using basic in the 1970s so I am biased). I've not done any real programming for probably 10 years but now I am on a mission to make a simple Point of Sale system, I was wanting to use MySQL but vs2022 and vs 2019 don't seem to work with MySQL any more. I tried MS's localDB but can't quite figure out how to create and connect to the file inside c# so I settled on SQLite which works no problem at all (I just want a local DB file, don't need a server etc as this POS is for one machine only at home.
Before I really get started I wanted to know, can I use a single C# class as my main program and have it display the different forms? The forms would have thier own purposes which the main program knows nothing about but they would set variables IN the main program (my way around no globals). This way I get what seems like a sane structure to me and I know where to look for everything.
I am guessing I would make the main class my startup object and make it a static class?
Or am I just rambling gibberish?
Before I really get started I wanted to know, can I use a single C# class as my main program and have it display the different forms? The forms would have thier own purposes which the main program knows nothing about but they would set variables IN the main program (my way around no globals). This way I get what seems like a sane structure to me and I know where to look for everything.
I am guessing I would make the main class my startup object and make it a static class?
Or am I just rambling gibberish?