[Mono-list] Questions about coding style

Philippe Grohrock philippe.grohrock at gmail.com
Mon Aug 20 19:28:07 UTC 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120820/34f534e9/attachment.html>


More information about the Mono-list mailing list