Thanks for the reply already and I'm sorry, I should've added the lines of
code.
This way the whole program has access to it and can modify/query the DB when
needed (this is what I meant with global). At the moment I have 2 of my
windows using that connection, but there might be more in the future. So is
this a bad way of doing it? Would it be better to have the connection be
internal static? Should I declare it once after the start of the program and
then hand it over to the windows?
I think I also need to open a new topic about assemblies ;)
--
View this message in context:
http://mono.1490590.n4.nabble.com/Questions-about-coding-style-tp4656301p4656321.html
Sent from the Mono - General mailing list archive at Nabble.com.
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list